mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-08 22:30:28 -06:00
26 lines
444 B
Python
26 lines
444 B
Python
from django.contrib import admin
|
|
|
|
from projects.admin import ProjectFilter
|
|
from .models import Release
|
|
|
|
|
|
@admin.register(Release)
|
|
class ReleaseAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
'project',
|
|
'version',
|
|
'date_released',
|
|
'is_semver',
|
|
'sort_epoch',
|
|
]
|
|
|
|
list_filter = [
|
|
ProjectFilter,
|
|
]
|
|
|
|
readonly_fields = [
|
|
'project',
|
|
'is_semver',
|
|
'sort_epoch',
|
|
]
|