-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename auth_user table to users_user
- Loading branch information
1 parent
914a11a
commit 90a1fe5
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.18 on 2025-02-05 22:00 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("users", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="user", | ||
options={"verbose_name": "user", "verbose_name_plural": "users"}, | ||
), | ||
migrations.AlterModelTable( | ||
name="user", | ||
table=None, | ||
), | ||
migrations.RunSQL( | ||
sql="CREATE VIEW auth_user AS SELECT * FROM users_user;", | ||
reverse_sql="DROP VIEW auth_user;", | ||
elidable=True, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,3 @@ | |
|
||
class User(AbstractUser): | ||
"""Custom model for users""" | ||
|
||
class Meta: | ||
db_table = "auth_user" |