Commit 40829d7d authored by Jamesie Pic's avatar Jamesie Pic
Browse files

Fixed a funny mistake, the default main_mandate was 1.

21:38 < is_null> if anybody wonders why
MemopolRepresentative.main_mandate_id defaults to "True" (which is then
converted to 1), it's all in the title "Optimizes sql queries" xD
parent de0af789
......@@ -34,7 +34,7 @@ from core.utils import create_child_instance_from_parent
class MemopolRepresentative(Representative):
country = models.ForeignKey(Country, null=True)
score = models.IntegerField(default=0)
main_mandate = models.ForeignKey(Mandate, null=True, default=True)
main_mandate = models.ForeignKey(Mandate, null=True, default=None)
def update_score(self):
score = 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment