X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a46c356186d0b84328f33a1a9b8198cb70602eaa..3263fb5558f69c727e61a6d4c0b3575a0f081ef6:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index d2e135c5..4c1a21ce 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -148,8 +148,9 @@ def create_missing(request): form = forms.DocumentCreateForm(initial={'owner_organization': org}) tag_forms = [ - (TagMultipleForm if category.multiple else TagSingleForm)(category=category, prefix=category.dc_tag) - for category in Category.objects.all()] + (TagMultipleForm if category.multiple else TagSingleForm)( + category=category, tutorial_no=i, prefix=category.dc_tag) + for i, category in enumerate(Category.objects.all(), start=2)] return render(request, "catalogue/document_create_missing.html", { "form": form,