Added field registration_url to the json
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 3m42s
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 3m42s
This commit is contained in:
@@ -84,7 +84,7 @@ def EventListAsJSONView(request):
|
||||
filter_exp &= Q(sport__in=filter_cleaned) | Q(level__in=filter_cleaned)
|
||||
|
||||
qs = Event.objects.filter(filter_exp).order_by('first_day', 'number').distinct()
|
||||
data = [event.as_dict(json=True) for event in qs]
|
||||
data = [event.as_dict(json=True, add_registration_url=True) for event in qs]
|
||||
response = JsonResponse(data, safe=False)
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user