Skip to content

Commit

Permalink
[#2637] Support import/export of ZaakTypeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed Jul 24, 2024
1 parent 84a27e8 commit b0ac6e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/open_inwoner/openzaak/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from django.forms.models import BaseInlineFormSet
from django.utils.translation import gettext_lazy as _, ngettext

from import_export.admin import ImportExportMixin
from solo.admin import SingletonModelAdmin

from open_inwoner.ckeditor5.widgets import CKEditorWidget
Expand Down Expand Up @@ -244,7 +245,7 @@ def has_delete_permission(self, request, obj=None):


@admin.register(ZaakTypeConfig)
class ZaakTypeConfigAdmin(admin.ModelAdmin):
class ZaakTypeConfigAdmin(ImportExportMixin, admin.ModelAdmin):
inlines = [
ZaakTypeInformatieObjectTypeConfigInline,
ZaakTypeStatusTypeConfigInline,
Expand Down Expand Up @@ -307,6 +308,11 @@ class ZaakTypeConfigAdmin(admin.ModelAdmin):
]
ordering = ("identificatie", "catalogus__domein")

# import/export
# import_template_name = "admin/category_import.html"
# resource_class = CategoryImportResource
# formats = [base_formats.XLSX, base_formats.CSV]

def has_add_permission(self, request):
return False

Expand Down

0 comments on commit b0ac6e0

Please sign in to comment.