question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please extend example with NameserverViewSet

See original GitHub issue

Thank you for coding this useful thing. I have a suggestion because I faced a problem while experimenting with your app.

Please consider extending example by providing NameserverViewSet code to make clear how {pk} and domain {domain_pk} should be used in ViewSets.
General example of ViewSet is below, but how to enable filtering by {domain_pk} is not clear, so I have all Nameserver objects listed.

class NameserverViewSet(viewsets.ModelViewSet):
    queryset = Nameserver.objects.all()
    serializer_class = NameserverSerializer

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
alanjdscommented, Feb 8, 2018

@artem-fedosov & @cameronblandford: The updated README from #108 does suits your needs? Can I close the issue here?

0reactions
alanjdscommented, Feb 9, 2018

Will close for now. Can be reopened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Extends/Inheritance Example - YouTube
A quick tutorial on how to use extends in java.
Read more >
drf-nested-routers - Bountysource
I was wondering if there is a way currently, or maybe implement here in the future, have the default parameter catchers in the...
Read more >
django rest framework urls
This function is taking the URL parameter and passes it to a Django template as a dictionary. . User ID. In order to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found