Skip to content
Extraits de code Groupes Projets
Valider 40829d7d rédigé par Jamesie Pic's avatar Jamesie Pic
Parcourir les fichiers

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
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter