Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RestaurantDetailView(DetailView):
- pk_url_kwarg = 'id'
- queryset = Restaurant.objects.all()
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- return context
Add Comment
Please, Sign In to add comment