Skip to content

Conversation

@ArnavBallinCode
Copy link
Contributor

@ArnavBallinCode ArnavBallinCode commented Nov 3, 2025

  • Add optional po_number CharField to SponsorshipProfile model
  • Update admin interface to display and export po_number field
  • Add po_number to SponsorshipProfileForm for user input
  • Create migration for the new field

#255

- Add optional po_number CharField to SponsorshipProfile model
- Update admin interface to display and export po_number field
- Add po_number to SponsorshipProfileForm for user input
- Create migration for the new field
- Field is optional
@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 ffaf6d0
🔍 Latest deploy log https://app.netlify.com/projects/pyladiescon-portal-docs/deploys/690df058febddc000806048e
😎 Deploy Preview https://deploy-preview-258--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

Thank you. This is in a good shape.
Could you also add tests in the test_models.py as well as in test_forms? We have some tests to verify that the fields are saved correctly.

Example

def test_fields_are_saved(self, form_data, admin_user):

- Add test in test_forms.py to verify po_number is saved correctly
- Add test_po_number_field_is_saved in test_models.py to verify field persistence
- Add test_po_number_field_can_be_empty to verify optional behavior
Copy link
Member

@Mariatta Mariatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@Mariatta
Copy link
Member

Mariatta commented Nov 3, 2025

Sorry I forgot one thing. Could you please add the field to the Create Sponsor Form?

https://github.com/pyladies/pyladiescon-portal/blob/main/sponsorship/templates/sponsorship/sponsorship_profile_form.html#L37

We added various fields there, and the PO number is needed as well.

@Mariatta
Copy link
Member

Mariatta commented Nov 4, 2025

Now that I've merged your other PR which includes the Sponsorship Profile Detail view, could you add the PO number field to that page as well? Thanks.

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