admin.py 340 B

12345678910111213
  1. from django.contrib import admin
  2. from .models import Release
  3. class ReleaseAdmin(admin.ModelAdmin):
  4. search_fields = ["organization__name", "projects__name"]
  5. list_display = ["version", "organization"]
  6. list_filter = ["created"]
  7. autocomplete_fields = ["organization", "projects"]
  8. admin.site.register(Release, ReleaseAdmin)