Skip to content
Snippets Groups Projects
Verified Commit 9233847b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Set related name on site reference of ExtensibleModel to '+'

parent 7a83d36f
No related branches found
No related tags found
1 merge request!1180Set related name on site reference of ExtensibleModel to '+'
Pipeline #113140 failed
......@@ -61,6 +61,8 @@ Fixed
* Invitations for existing short name did not work.
* Invitations for persons without pre-defined e-mail address did not behave correctly
* OIDC scope "phone" had no claims.
* [Dev] Site reference on extensible models can no longer cause name clashes
because of its related name.
Removed
~~~~~~~
......
......@@ -130,7 +130,7 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase):
icon_ = "radiobox-blank"
site = models.ForeignKey(
Site, on_delete=models.CASCADE, default=settings.SITE_ID, editable=False
Site, on_delete=models.CASCADE, default=settings.SITE_ID, editable=False, related_name="+"
)
objects = CurrentSiteManager()
objects_all_sites = models.Manager()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment