Skip to content
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

Admin > Invtationer: Sortering af Alder, PostNummer og Deltager kolonner #1081

Conversation

mhewel
Copy link
Contributor

@mhewel mhewel commented Jul 21, 2024

No description provided.

Copy link

what-the-diff bot commented Jul 21, 2024

PR Summary

  • Imported Necessary Libraries
    In the members/admin/activityinvite_admin.py file, we've added imports for ActivityParticipant and OuterRef. These are essentially the tools needed to manipulate and access specific data from the database.

  • Annotated Queryset
    An annotation titled is_participating has been added to the queryset. This is used to mark whether a user is participating in an activity or not.

  • Sorting Enhancement
    The functions person_age_years and person_zipcode have been updated with an admin_order_field. This is an enhancement done to allow sorting of data fields related to a person's age in years and their zipcode in the user interface.

  • Participation Status Update
    We've enhanced the participating function to use is_participating which results in a more streamlined way to check the participation status of an individual.

  • Sorting Function Added
    An admin_order_field for the participating function has been added. This means we can now sort data fields related to the participation status of individuals, bringing more flexibility in the data sorting.

Copy link
Contributor

@rasmusselsmark rasmusselsmark left a comment

Choose a reason for hiding this comment

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

Testet lokalt

@rasmusselsmark rasmusselsmark merged commit fff7e2a into master Jul 21, 2024
5 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.

[Feature] Admin > Invitationer: Sorter på Alder, Postnummer og Deltager
2 participants