Commit 75405a46 authored by Jamesie Pic's avatar Jamesie Pic

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
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}
Markdown is supported
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