Skip to content
Extraits de code Groupes Projets
Valider 20cd39ca rédigé par Arnaud Fabre's avatar Arnaud Fabre
Parcourir les fichiers

bug fixes

parent 71da78ad
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -10,4 +10,4 @@ class Command(BaseCommand):
@transaction.atomic
def handle(self, *args, **options):
for representative in MemopolRepresentative.objects.all():
representative.update_score()
representative.update_country()
......@@ -107,7 +107,6 @@ class MemopolRepresentative(Representative):
@receiver(post_save, sender=Representative)
def create_memopolrepresentative_from_representative(instance, **kwargs):
create_child_instance_from_parent(MemopolRepresentative, instance)
pass
@receiver(post_save, sender=Mandate)
......
from django import template
from django.core.urlresolvers import reverse
from representatives.models import Mandate
from representatives.models import Mandate, Group
register = template.Library()
......@@ -10,7 +10,10 @@ register = template.Library()
def by_group_url(group):
if isinstance(group, Mandate):
group = group.group
if not isinstance(group, Group):
return ''
kwargs = {'group_kind': group.kind}
if group.abbreviation:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter