Mohamed Feddad

50%
Flag icon
However, you can use many more features of the admin by creating a custom ModelAdmin class. In this case, we customize it as follows: # admin.py class SightingAdmin(admin.ModelAdmin):     list_display = ('superhero', 'power', 'location', 'sighted_on')     date_hierarchy = 'sighted_on'     search_fields = ['superhero']     ordering = ['superhero']
Django Design Patterns and Best Practices: Industry-standard web development techniques and solutions using Python, 2nd Edition
Rate this book
Clear rating