Skip to content

Commit

Permalink
Fix bug with inaugural_year and terms and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed Feb 8, 2018
1 parent b15f7e8 commit 6050bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lowfat/migrations/0123_auto_20180206_1515.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def assign_past_terms_and_conditions(apps, schema_editor): # pylint: disable=un
TermsAndConditions = apps.get_model("lowfat", "TermsAndConditions") # pylint: disable=invalid-name

for claimant in Claimant.objects.all():
application_year = claimant.application_year + 1
application_year = claimant.application_year
terms_and_conditions = TermsAndConditions.objects.get(
year=str(application_year + 1)
)
Expand Down

0 comments on commit 6050bb1

Please sign in to comment.