admin: fix slow load for templates using get_links

This commit is contained in:
Jens Langhammer
2020-05-16 19:00:43 +02:00
parent 5596caedbc
commit df1cb88abc
4 changed files with 21 additions and 18 deletions

View File

@ -12,7 +12,7 @@ class PolicyBindingModel(models.Model):
"""Base Model for objects that have policies applied to them."""
policies = models.ManyToManyField(
"Policy", through="PolicyBinding", related_name="+", blank=True
"Policy", through="PolicyBinding", related_name="bindings", blank=True
)
class Meta: