Run django-upgrade pre-commit hook.
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
import django
|
|
||||||
|
|
||||||
if django.VERSION < (3, 2):
|
|
||||||
default_app_config = "admin_interface.apps.AdminInterfaceConfig"
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ from django.utils.translation import gettext_lazy as _
|
|||||||
from admin_interface.models import Theme
|
from admin_interface.models import Theme
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(Theme)
|
||||||
class ThemeAdmin(admin.ModelAdmin):
|
class ThemeAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
list_display = (
|
list_display = (
|
||||||
@@ -185,6 +186,3 @@ class ThemeAdmin(admin.ModelAdmin):
|
|||||||
)
|
)
|
||||||
|
|
||||||
save_on_top = True
|
save_on_top = True
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(Theme, ThemeAdmin)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user