Improve admin interfaces.
This commit is contained in:
@@ -5,8 +5,6 @@ from django.contrib import admin
|
||||
from .models import EventType
|
||||
|
||||
|
||||
@admin.register(EventType)
|
||||
class EventTypeAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('name', '__str__')
|
||||
|
||||
|
||||
admin.site.register(EventType, EventTypeAdmin)
|
||||
|
||||
Reference in New Issue
Block a user