from django.contrib import admin from django.contrib.admin import ModelAdmin import header_fotky.models as m class FotkaPozadiAdmin(ModelAdmin): readonly_fields = ['cas'] admin.site.register(m.FotkaHeader, FotkaPozadiAdmin) admin.site.register(m.FotkaUrlVazba)