mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-20 13:29:37 +02:00
permisison fixes
This commit is contained in:
parent
d64abf2273
commit
67619aec57
8 changed files with 112 additions and 34 deletions
|
@ -6,8 +6,8 @@ from worldtravel.models import Country, Region, VisitedRegion
|
|||
|
||||
|
||||
class AdventureAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'type', 'user_id', 'date', 'image_display')
|
||||
list_filter = ('type', 'user_id')
|
||||
list_display = ('name', 'type', 'user_id', 'date', 'is_public', 'image_display')
|
||||
list_filter = ('type', 'user_id', 'is_public')
|
||||
|
||||
def image_display(self, obj):
|
||||
if obj.image:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue