mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Merge branch 'easier_acl' into 'master'
Fix acl.py lower See merge request federez/re2o!206
This commit is contained in:
commit
9be8ca1cf4
1 changed files with 2 additions and 2 deletions
|
@ -95,11 +95,11 @@ def get_model(model_name):
|
||||||
try:
|
try:
|
||||||
if app_label is not None:
|
if app_label is not None:
|
||||||
content_type = ContentType.objects.get(
|
content_type = ContentType.objects.get(
|
||||||
model=name,
|
model=name.lower(),
|
||||||
app_label=app_label
|
app_label=app_label
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
content_type = ContentType.objects.get(model=name)
|
content_type = ContentType.objects.get(model=name.lower())
|
||||||
except ContentType.DoesNotExist:
|
except ContentType.DoesNotExist:
|
||||||
raise template.TemplateSyntaxError(
|
raise template.TemplateSyntaxError(
|
||||||
"%r is not a valid model for an acl tag" % model_name
|
"%r is not a valid model for an acl tag" % model_name
|
||||||
|
|
Loading…
Reference in a new issue