diff --git a/representatives_votes/management/__init__.py b/representatives_votes/management/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/representatives_votes/management/commands/__init__.py b/representatives_votes/management/commands/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/representatives_votes/management/commands/remove_dossiers_without_proposal.py b/representatives_votes/management/commands/remove_dossiers_without_proposal.py new file mode 100644 index 0000000000000000000000000000000000000000..302eaea1c2434aba371899cf1237d92a99276b2f --- /dev/null +++ b/representatives_votes/management/commands/remove_dossiers_without_proposal.py @@ -0,0 +1,8 @@ +from representatives.management.remove_command import RemoveCommand + +from representatives_votes.models import Dossier + + +class Command(RemoveCommand): + manager = Dossier.objects + conditions = {'proposals': None} diff --git a/representatives_votes/management/commands/remove_representatives_without_vote.py b/representatives_votes/management/commands/remove_representatives_without_vote.py new file mode 100644 index 0000000000000000000000000000000000000000..1d942e54637a094cfa898d7a8ed777e64de738bc --- /dev/null +++ b/representatives_votes/management/commands/remove_representatives_without_vote.py @@ -0,0 +1,8 @@ +from representatives.management.remove_command import RemoveCommand + +from representatives.models import Representative + + +class Command(RemoveCommand): + manager = Representative.objects + conditions = {'votes': None}