Verified Commit 28b6f1b4 authored by David Haynes's avatar David Haynes 🙆
Browse files

Common comment structure for the header

"""
api/<file>

short description

helpful link
"""
parent ed165670
Pipeline #1376 passed with stage
in 1 minute and 5 seconds
"""
api/admin.py
Django admin interface configuration.
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/
......
"""
api/serializers.py
Rest Framework Serializers
"""
# Future Imports
......
"""
api/urls.py
Define the routes that the API will serve content through.
http://www.django-rest-framework.org/api-guide/routers/
"""
# Future Imports
from __future__ import (absolute_import, division, print_function,
unicode_literals)
......
"""
api/views.py
Rest Framework Class Views
"""
# Future Imports
......@@ -40,7 +42,7 @@ class FacilityViewSet(viewsets.ReadOnlyModelViewSet):
if open_now is not None:
results = []
for fac in queryset:
if fac.isOpen():
if fac.is_open_now():
results.append(fac)
return results
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment