Don't broadcast events without a location in the searchable federation
This commit is contained in:
parent
26357e6b41
commit
257d3108e1
2 changed files with 3 additions and 3 deletions
|
@ -69,9 +69,9 @@ docker exec -it get_together python3 manage.py createsuperuser
|
|||
You can then connect to the container by going to localhost:8000
|
||||
|
||||
## Test Federation
|
||||
You can import sample event data into your "Searchable" table with this command:
|
||||
You can import live event data into your "Searchable" table with this command:
|
||||
|
||||
`./env/bin/python manage.py import http://people.ubuntu.com/~mhall119/searchable_test.json`
|
||||
`./env/bin/python manage.py import https://gettogether.community/searchables/`
|
||||
|
||||
|
||||
## Getting Involved
|
||||
|
|
|
@ -12,7 +12,7 @@ import simplejson
|
|||
|
||||
# Create your views here.
|
||||
def searchable_list(request, *args, **kwargs):
|
||||
searchables = Searchable.objects.all()
|
||||
searchables = Searchable.objects.exclude(location_name='')
|
||||
serializer = SearchableSerializer(searchables, many=True)
|
||||
return JsonResponse(serializer.data, safe=False)
|
||||
|
||||
|
|
Loading…
Reference in a new issue