Skip to content

Commit

Permalink
feat: Updated admin interface for m2m fields in academies
Browse files Browse the repository at this point in the history
  • Loading branch information
IrfanUddinAhmad committed Jan 11, 2024
1 parent 6c2f81d commit 46903a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enterprise_catalog/apps/academy/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class TagAdmin(admin.ModelAdmin):
"""
list_display = ('id', 'title', )
search_fields = ('title', )
filter_horizontal = ('content_metadata',)


@admin.register(Academy)
Expand All @@ -23,3 +24,4 @@ class AcademyAdmin(SimpleHistoryAdmin):
"""
list_display = ('uuid', 'title', 'created', 'modified', )
search_fields = ('title', 'short_description', 'long_description', )
filter_horizontal = ('enterprise_catalogs', 'tags', )

0 comments on commit 46903a5

Please sign in to comment.