mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 14:29:36 +02:00
refactor: remove archived collections page and related components; enhance world travel pages with improved UI and filtering options
This commit is contained in:
parent
14eb4ca802
commit
a99553ba0d
9 changed files with 797 additions and 361 deletions
|
@ -129,12 +129,9 @@ class CategoryAdmin(admin.ModelAdmin):
|
|||
search_fields = ('name', 'display_name')
|
||||
|
||||
class CollectionAdmin(admin.ModelAdmin):
|
||||
def adventure_count(self, obj):
|
||||
return obj.adventure_set.count()
|
||||
|
||||
|
||||
adventure_count.short_description = 'Adventure Count'
|
||||
|
||||
list_display = ('name', 'user_id', 'adventure_count', 'is_public')
|
||||
list_display = ('name', 'user_id', 'is_public')
|
||||
|
||||
admin.site.register(CustomUser, CustomUserAdmin)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue