Compare commits
No commits in common. "3d1faa49c35f52f11d7c13a96a02b716b974961f" and "dc9928f3161334ffa322bfd0b5627dd3794ed316" have entirely different histories.
3d1faa49c3
...
dc9928f316
2 changed files with 3 additions and 5 deletions
|
@ -32,8 +32,6 @@ def create_user_no_responses(instance: User, **kwargs):
|
|||
# Delete all pre-existing no-responses for this user, in case date_joined or main was changed
|
||||
RaidResponse.objects.filter(character__user=instance, status=RaidResponse.NO_RESPONSE).delete()
|
||||
# Then create them (again)
|
||||
if not instance.is_active:
|
||||
return
|
||||
RaidResponse.objects.bulk_create(
|
||||
RaidResponse(
|
||||
raid=raid,
|
||||
|
@ -42,6 +40,6 @@ def create_user_no_responses(instance: User, **kwargs):
|
|||
attendance=RaidResponse.STATUS_DEFAULT_ATTENDANCE[RaidResponse.NO_RESPONSE]
|
||||
)
|
||||
for raid in Raid.objects.exclude(
|
||||
Q(date__lt=instance.date_joined) | Q(responses__character__user=instance)
|
||||
Q(response_deadline__lt=instance.date_joined) | Q(responses__character__user=instance)
|
||||
)
|
||||
)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Django==3.0.2
|
||||
Django==2.2.6
|
||||
psycopg2-binary>=2.5.4 # required by Django for PostgreSQL support: https://docs.djangoproject.com/en/2.2/ref/databases/#postgresql-notes
|
||||
django-crispy-forms==1.8.1
|
||||
django-crispy-forms==1.7.2
|
||||
|
|
Loading…
Reference in a new issue