-
Notifications
You must be signed in to change notification settings - Fork 7
[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
base: develop
Are you sure you want to change the base?
Conversation
src/etools/applications/last_mile/admin_panel/services/lm_user_creator.py
Outdated
Show resolved
Hide resolved
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') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.