Skip to content

Commit

Permalink
Merge pull request #714 from opengisch/QF-2866_trial_org_init_inactive
Browse files Browse the repository at this point in the history
Fix trial org is active after creation
  • Loading branch information
suricactus authored Jul 12, 2023
2 parents 93043e9 + 2b38b84 commit 55d0a9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker-app/qfieldcloud/subscription/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def create_subscription(
TODO Python 3.11 the actual return type is Self
"""
if active_since:
# remove milliseconds as there will be slight shift with the remote system data
# remove microseconds as there will be slight shift with the remote system data
active_since = active_since.replace(microsecond=0)

if plan.is_trial:
Expand All @@ -833,7 +833,6 @@ def create_subscription(
plan=plan,
account=account,
created_by=created_by,
# TODO in the future the status can be configured in the `Plan.initial_subscription_status`
status=plan.initial_subscription_status,
active_since=active_since,
active_until=active_until,
Expand Down

0 comments on commit 55d0a9d

Please sign in to comment.