Jonas Havelka
3 months ago
3 changed files with 13 additions and 22 deletions
@ -1,20 +0,0 @@ |
|||||
from django.contrib import admin |
|
||||
from django.db import models |
|
||||
from django.forms import widgets |
|
||||
|
|
||||
# Todo: reversion |
|
||||
|
|
||||
import seminar.models as m |
|
||||
|
|
||||
|
|
||||
class TextAdminInline(admin.TabularInline): |
|
||||
model = m.Text |
|
||||
formfield_overrides = { |
|
||||
models.TextField: {'widget': widgets.TextInput} |
|
||||
} |
|
||||
exclude = ['text_zkraceny_set','text_zkraceny'] |
|
||||
|
|
||||
admin.site.register(m.Text) |
|
||||
|
|
||||
# admin.site.register(m.Pohadka) |
|
||||
admin.site.register(m.Obrazek) |
|
Loading…
Reference in new issue