-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing COUPONS_COUPON_TYPES generates additional migrations #29
Comments
dmarcelino
added a commit
to dmarcelino/django-coupons
that referenced
this issue
Mar 26, 2018
To avoid generating new migrations when COUPONS_COUPON_TYPES is changed.
Amurmurmur
added a commit
to Amurmurmur/django-coupons
that referenced
this issue
Sep 4, 2018
Fix byteweaver#29: use choices only in the form
Amurmurmur
added a commit
to Amurmurmur/django-coupons
that referenced
this issue
Sep 5, 2018
Fix byteweaver#29: use choices only in the form
Amurmurmur
added a commit
to Amurmurmur/django-coupons
that referenced
this issue
Sep 5, 2018
Fix byteweaver#29: use choices only in the form
digicase
added a commit
to digicase/django-coupons
that referenced
this issue
Mar 11, 2020
Fixes byteweaver#29. To avoid generating new migrations when COUPONS_COUPON_TYPES is changed, use it only to populate the coupon form.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
If the setting
COUPONS_COUPON_TYPES
is set it will generate additionaldjango-coupons
migrations, because it's being used as an input to modelfieldtype
in models.py#L73:This is not ideal as it can break a user app if
django-coupons
add migrations in the future. I suggestchoices
are only applied to form and not the coupon model.The text was updated successfully, but these errors were encountered: