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

Set default for site field in ExtensibleModel

parent 11ba0c79
No related branches found
No related tags found
1 merge request!245Set default site in ExtensibleModel
Pipeline #1901 passed with warnings
......@@ -65,7 +65,7 @@ class ExtensibleModel(models.Model):
# Defines a material design icon associated with this type of model
icon_ = "radio_button_unchecked"
site = models.ForeignKey(Site, on_delete=models.CASCADE)
site = models.ForeignKey(Site, on_delete=models.CASCADE, default=Site.objects.get_current, editable=False)
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