diff --git a/docker-app/qfieldcloud/core/management/commands/createsuperuser.py b/docker-app/qfieldcloud/core/management/commands/createsuperuser.py index 439104d11..18252dcd7 100644 --- a/docker-app/qfieldcloud/core/management/commands/createsuperuser.py +++ b/docker-app/qfieldcloud/core/management/commands/createsuperuser.py @@ -1,5 +1,6 @@ -from django.contrib.auth.management.commands.createsuperuser import Command as SuperUserCommand - +from django.contrib.auth.management.commands.createsuperuser import ( + Command as SuperUserCommand, +) from qfieldcloud.core.models import Person diff --git a/docker-app/qfieldcloud/subscription/models.py b/docker-app/qfieldcloud/subscription/models.py index 9fcaf8a03..6c937bd94 100644 --- a/docker-app/qfieldcloud/subscription/models.py +++ b/docker-app/qfieldcloud/subscription/models.py @@ -779,8 +779,6 @@ def create_default_plan_subscription( if not isinstance(created_by, Person): created_by = Person.objects.get(pk=created_by.pk) - - if active_since is None: active_since = timezone.now()