Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1102 from akatsoulas/update-campaign-migration
Browse files Browse the repository at this point in the history
Exclude users with report on the 1st of October 2015.
  • Loading branch information
akatsoulas committed Jan 5, 2016
2 parents f875b03 + 4015c94 commit 9b7b1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remo/reports/migrations/0019_activity_campaign_2015.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def forwards(self, orm):
inactive_users = (User.objects.filter(groups__name='Rep')
.filter(userprofile__date_joined_program__lt=REGISTRATION_DATE,
userprofile__registration_complete=True)
.exclude(ng_reports__report_date__gt=INACTIVATION_DATE))
.exclude(ng_reports__report_date__gte=INACTIVATION_DATE))

for user in inactive_users:
user.groups.clear()
Expand Down

0 comments on commit 9b7b1ca

Please sign in to comment.