Private
Public Access
1
0

more removing of date.today and replacing with timezone.now

This commit is contained in:
Sander Roosendaal
2021-08-09 20:48:45 +02:00
parent 0438d3b396
commit 2b593d4df6
11 changed files with 23 additions and 22 deletions

View File

@@ -1183,7 +1183,6 @@ def check_teams_on_change(sender, **kwargs):
action = kwargs.pop('action', None)
pk_set = kwargs.pop('pk_set',None)
if action == 'pre_add':
#if instance.protrialexpires < datetime.date.today() and instance.plantrialexpires < datetime.date.today():
for id in pk_set:
team = Team.objects.get(id=id)
if not can_join_team(instance.user,team):