Cannot delete users who are missing a next_payment date
Steps to reproduce:
- Attempt to delete an account with the admin command
(Happens with other attempts too, this is the easiest to reproduce.)
What should happen:
Account is deleted.
What happens instead:
File "/var/lib/ldh_middleware/purist/management/commands/delete_user.py", line 70, in handle
delete_account(user, purge_n=purge_n, purge=full)
File "/var/lib/ldh_middleware/limitmonitor/common.py", line 167, in delete_account
sub.save()
File "/var/lib/ldh_middleware/limitmonitor/subscription.py", line 396, in save
+ req.json()['message'])
limitmonitor.subscription.SubscriptionError: Error when saving the subscription: Updating subscription dates errored with message: Subscription 123456: The next_payment date must occur after the start date.