Skip to content

[ch39xxx] Locations admin panel #3922

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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

smihalache06
Copy link
Contributor

No description provided.

@smihalache06 smihalache06 requested a review from fpbonet June 6, 2025 06:34
@smihalache06 smihalache06 added READY and removed WIP labels Jun 6, 2025
Comment on lines +749 to +751
class UserPointsOfInterest(TimeStampedModel, models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='points_of_interest')
point_of_interest = models.ForeignKey(PointOfInterest, on_delete=models.CASCADE, related_name='users')
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need this new Model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need this model to know to which location a user have access. Right now the access is defined on partner level, but is needed to be on user level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants