diff --git a/mayan/apps/metadata/views.py b/mayan/apps/metadata/views.py index 47c445b4e7..222d204c27 100644 --- a/mayan/apps/metadata/views.py +++ b/mayan/apps/metadata/views.py @@ -127,7 +127,9 @@ class DocumentMetadataAddView(MultipleObjectFormActionView): if queryset.count() == 1: result.update( { - 'queryset': MetadataType.objects.exclude( + 'queryset': MetadataType.objects.get_for_document_type( + document_type=queryset.first().document_type + ).exclude( pk__in=MetadataType.objects.get_for_document( document=queryset.first() )