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)
|
2024-08-03 10:55:03 +02:00
|
|
|
admin.site.register(m.FotkaUrlVazba)
|