1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-20 13:29:37 +02:00

Add new model fields and remove old ones

This commit is contained in:
Sean Morley 2024-09-22 00:07:45 -04:00
parent 78f56a3a5f
commit eab312e94e
4 changed files with 88 additions and 32 deletions

View file

@ -6,7 +6,7 @@ from worldtravel.models import Country, Region, VisitedRegion
class AdventureAdmin(admin.ModelAdmin):
list_display = ('name', 'type', 'user_id', 'date', 'is_public', 'image_display')
list_display = ('name', 'type', 'user_id', 'is_public', 'image_display')
list_filter = ('type', 'user_id', 'is_public')
def image_display(self, obj):