You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2022. It is now read-only.
Users -> Quotas is an injective but not bijective function, so the ideal place for this would be a field in the User model, but Django's built-in user framework makes it difficult to add fields to the user relation itself. Two possible solutions that have been proposed:
Create an auxiliary Profile model that could also be used to store other one-to-one user columns that are not present in the built-in relation. (At this time it's unclear if we have any other such requirements, but they are generally common.)
Create a dedicated associative relation (user_id, quota_id), both of which columns have independent unique constraints.
Users -> Quotas is an injective but not bijective function, so the ideal place for this would be a field in the User model, but Django's built-in user framework makes it difficult to add fields to the user relation itself. Two possible solutions that have been proposed:
Profilemodel that could also be used to store other one-to-one user columns that are not present in the built-in relation. (At this time it's unclear if we have any other such requirements, but they are generally common.)(user_id, quota_id), both of which columns have independent unique constraints.