mamweb/header_fotky/admin.py

15 lines
393 B
Python
Raw Normal View History

2020-10-16 00:19:48 +02:00
from django.contrib import admin
from django.contrib.admin import ModelAdmin
import header_fotky.models as m
class FotkaPozadiAdmin(ModelAdmin):
2022-02-15 17:48:16 +01:00
"""
Nastaví čas vložení (:attr:`~header_fotky.models.FotkaHeader.cas`) jako
readonly = neměnitelný
"""
2020-10-16 00:19:48 +02:00
readonly_fields = ['cas']
admin.site.register(m.FotkaHeader, FotkaPozadiAdmin)
admin.site.register(m.FotkaUrlVazba)