Skip to content
Snippets Groups Projects
Commit d7ecd21e authored by Antoine Lambert's avatar Antoine Lambert
Browse files

django/models: Ensure OIDCUser model will not be created in database

OIDCUser model will not be persisted to django database as those
information are already stored in the identity provider one.

So ensure no table for the model will be created in django database
by setting the auto_created meta flag to True.

Related to T3150
parent 45ec395c
No related branches found
Tags swh-lister-20221026.2
No related merge requests found
......@@ -41,6 +41,7 @@ class OIDCUser(User):
# and isn't in an application in INSTALLED_APPS"
app_label = ""
proxy = True
auto_created = True # prevent model to be created in database by migrations
def save(self, **kwargs):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment