Commit a5c0513d by Matt Tuchfarber

Change Journal lookup to be UUID instead of ID

parent 4cc64e19
......@@ -13,6 +13,8 @@ class JournalViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows journals to be viewed or edited.
"""
lookup_field = 'uuid'
lookup_value_regex = journal_constants.UUID_PATTERN
queryset = Journal.objects.all()
serializer_class = JournalSerializer
......
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