Skip to content

Add Data Validation for Plan Creation #26

@DimitrovK

Description

@DimitrovK

Add validation to ensure Plan models have consistent data when created through the admin or API.
Tasks

Add validation that monthly/yearly price IDs exist in Stripe
Add validation for plan ordering
Ensure at least one price ID is provided
Add custom validation methods to Plan model
Add validation tests

Files to modify

  • core/models.py
  • core/admin.py
  • core/tests.py

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions