wagtail/wagtail/api/v2
Karl Hobley 90153e31c8 Fix AttributeError in listing_view endpoint
Fixes #3967

If there was no site configured, the listing views in the API would
break with an AttributeError.

Now, the following happens if there is no site record:
 - In the Admin API, all pages are returned but links in the response do
not include a domain name
 - In the Public API, no pages are returned
2017-11-03 14:44:07 +00:00
..
tests Fix AttributeError in listing_view endpoint 2017-11-03 14:44:07 +00:00
__init__.py feat(api/2): Added new module for WagtailAPI v2 2016-03-01 13:12:24 +00:00
apps.py Restructure API v2 module (as per RFC 8) (#2649) 2016-07-06 15:57:09 +03:00
endpoints.py Fix AttributeError in listing_view endpoint 2017-11-03 14:44:07 +00:00
filters.py Added parse_boolean function 2016-07-29 10:39:48 +03:00
pagination.py Ensured BaseSearchBackend.search method always return BaseSearchResults subclasses 2017-04-06 12:49:15 -04:00
router.py Initial work on the Admin API (#2507) 2016-07-13 13:26:43 +03:00
serializers.py Renamed field_configs to field_serializer_overrides 2017-03-30 11:12:08 +01:00
signal_handlers.py Import get_image_model from its new location 2016-10-13 12:33:09 +11:00
utils.py Fix AttributeError in listing_view endpoint 2017-11-03 14:44:07 +00:00