Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PageAdmin(admin.ModelAdmin):
- list_display = ["id", "title", "slug", "author", 'updated', 'custom_field']
- def custom_field(self, obj):
- # logic...
- return True # or False based on above logic
- class PageAdmin(admin.ModelAdmin):
- list_display = ["id", "title", "slug", "author", 'updated', 'custom_field']
- def custom_field(self, obj):
- # search on goodreads.com, parse results and match with obj.title
- return True # or False based on above logic
Add Comment
Please, Sign In to add comment