Skip to content

Commit

Permalink
Add django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Nov 16, 2024
1 parent ad3c41d commit 2b5671e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion manager/director/apps/sites/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
SiteResourceLimits,
)

admin.site.register(DockerImage)
admin.register(DockerImage)
class DockerImageAdmin(admin.ModelAdmin):
list_display = ('name', 'friendly_name', 'description')
search_fields = ('name', 'friendly_name', 'description')
ordering = ('parent', 'name', 'friendly_name')

admin.site.register(DockerImageSetupCommand)
admin.site.register(DockerImageExtraPackage)
admin.site.register(Domain)
Expand Down

0 comments on commit 2b5671e

Please sign in to comment.