Skip to content

Conversation

@ArnavBallinCode
Copy link
Contributor

WIP

#247

- Add is_individual_donation boolean field to SponsorshipProfile model
- Create migration 0005 for the new field
- Add new cache keys and calculation functions for:
  * Individual donations count and amount
  * Corporate sponsors count and amount (excludes individual donations)
  * Total funds raised (sum of both)
- Update admin to show and filter by is_individual_donation
- Update sponsorship form to include the new field
- Enhance sponsorship stats template with new breakdown section showing:
  * Individual Donations (count and amount)
  * Corporate Sponsors (count and amount)
  * Total Funds Raised
  * Progress to Goal
- Keep existing sponsorship pipeline stats for detailed tracking

Fixes pyladies#247
- Test individual donations count and amount calculation
- Test corporate sponsors count and amount (excludes individual donations)
- Test total funds raised (sum of both)
- Verify correct separation between individual and corporate
- Explain model changes and new fields
- Document new stats and cache keys
- Provide usage examples for admin and code
- Include testing instructions
- Add migration and cache management guidance
@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for pyladiescon-portal-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5c009c9
🔍 Latest deploy log https://app.netlify.com/projects/pyladiescon-portal-docs/deploys/690df1dd6c618b000826a7ab
😎 Deploy Preview https://deploy-preview-261--pyladiescon-portal-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Mariatta
Copy link
Member

Mariatta commented Nov 3, 2025

Thanks for starting on this.
I was envisioning to have a new "Donation" Model instead of a "is_individual_donation" of the SponsorshipProfile model.

@ArnavBallinCode
Copy link
Contributor Author

ArnavBallinCode commented Nov 4, 2025

Thanks for starting on this. I was envisioning to have a new "Donation" Model instead of a "is_individual_donation" of the SponsorshipProfile model.
@Mariatta

so basically you want me to replace the boolean by introducing a new Donation model in the sponsorship app, migrating existing SponsorshipProfile rows that have is_individual_donation=True to Donation rows, and then (in a separate migration) remove is_individual_donation , right ?

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.

2 participants