Skip to content

Commit

Permalink
fix: only natural person templates shown, not other person types
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Mar 7, 2023
1 parent c1b4b2e commit d36ac60
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
def documenttemplates_tab():
from basxbread.contrib.document_templates.models import DocumentTemplate

from basxconnect.core import models

def prefixes(context):
templates = DocumentTemplate.objects.filter(
model=ContentType.objects.get_for_model(models.NaturalPerson)
model=ContentType.objects.get_for_model(context["object"])
)
ret = {}
for template in templates:
Expand Down

0 comments on commit d36ac60

Please sign in to comment.