labelbase/django/attachments/admin.py
2024-04-14 01:59:27 +02:00

21 lines
357 B
Python

from __future__ import unicode_literals
from django.contrib.contenttypes.admin import GenericStackedInline
from django.contrib import admin
from .models import LabelAttachment
from .models import Attachment
class AttachmentInlines(GenericStackedInline):
model = Attachment
exclude = ()
extra = 1
admin.site.register(LabelAttachment)