Skip to content

Conversation

@milesbxf
Copy link
Contributor

Adds an API view that allows listing all incidents in a given calendar
month.

router.register(r'ExternalUser', ExternalUserViewSet)
router.register(r"incidents", IncidentViewSet, basename="incident")
router.register(
r"incidents/bymonth/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to other comment, there's a nicer syntax now. Not required though: https://docs.djangoproject.com/en/2.2/topics/http/urls/#example

mattrco
mattrco previously approved these changes Aug 19, 2019
Adds an API view that allows listing all incidents in a given calendar
month.
@milesbxf milesbxf merged commit 755c06f into master Aug 19, 2019
@milesbxf milesbxf deleted the incidents-by-month branch August 19, 2019 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants