Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 4 links - serializer method field #27

Open
Lcstyle opened this issue Feb 9, 2018 · 0 comments
Open

Chapter 4 links - serializer method field #27

Lcstyle opened this issue Feb 9, 2018 · 0 comments

Comments

@Lcstyle
Copy link

Lcstyle commented Feb 9, 2018

Consider this an RFI,

I'm having trouble with adding links to the DRF serializers, seemingly, the "detail-view" doesn't exist anywhere, and I get a NoReverseMatch error

Reverse for 'sprint-detail' not found. 'sprint-detail' is not a valid view function or pattern name.

I am using latest django and python 3.6.

if obj.sprint_id:

if obj.sprint_id:
links['sprint'] = reverse('sprint-detail',
kwargs={'pk': obj.sprint_id}, request=request)
if obj.assigned:

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

No branches or pull requests

1 participant