Guest User

Untitled

a guest
Nov 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class PageAdmin(admin.ModelAdmin):
  2.  
  3. list_display = ["id", "title", "slug", "author", 'updated', 'custom_field']
  4.  
  5. def custom_field(self, obj):
  6. # logic...
  7. return True # or False based on above logic
  8.  
  9. class PageAdmin(admin.ModelAdmin):
  10.  
  11. list_display = ["id", "title", "slug", "author", 'updated', 'custom_field']
  12.  
  13. def custom_field(self, obj):
  14. # search on goodreads.com, parse results and match with obj.title
  15. return True # or False based on above logic
Add Comment
Please, Sign In to add comment