Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Base(View):
- title = 'abc'
- slug = 'abc-12'
- def get_context(self, request):
- return {'title': self.title, 'slug': self.slug }
- class Logbook(Base)
- mode = 'read'
- def get_context(self, request)
- # call super class
- return super().add('mode': self.mode)
- # i want {'title': 'abc', 'slug': 'abc-12', mode: 'read' }
- def get(self, request)
- context = self.get_context(request)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement