Skip to content

Conversation

RandomProgramm3r
Copy link
Owner

  • Move promo-related magic values (mode identifiers, length limits, choice lists) into business.constants
  • Update Promo and PromoCode models to reference PROMO_MODE_CHOICES, PROMO_UNIQUE_CODE_MAX_LENGTH, etc.
  • Update serializers to use these constants for validation and field definitions

- Move promo-related magic values (mode identifiers, length limits, choice lists) into `business.constants`
- Update `Promo` and `PromoCode` models to reference `PROMO_MODE_CHOICES`, `PROMO_UNIQUE_CODE_MAX_LENGTH`, etc.
- Update serializers to use these constants for validation and field definitions
@RandomProgramm3r RandomProgramm3r merged commit 77fb3f0 into main Apr 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant