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

Added database cleaning commands

remove_dossiers_without_recommendation and
remove_representatives_without_votes are useful to clean the database
before dumping test fixtures.
parent b4b02b79
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
from representatives.management.remove_command import RemoveCommand
from representatives_votes.models import Dossier
class Command(RemoveCommand):
manager = Dossier.objects
conditions = {'proposals': None}
from representatives.management.remove_command import RemoveCommand
from representatives.models import Representative
class Command(RemoveCommand):
manager = Representative.objects
conditions = {'votes': None}
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