Skip to content

Commit

Permalink
유저 모델 ruff 적용 및 필드명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
im-niber committed Aug 13, 2024
1 parent c60ff75 commit 051fd0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 10 additions & 11 deletions customk/users/migrations/0003_rename_nickname_user_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class Migration(migrations.Migration):
dependencies = [
("users", "0002_user_created_at_user_updated_at"),
]

dependencies = [
("users", "0002_user_created_at_user_updated_at"),
]

operations = [
migrations.RenameField(
model_name="user",
old_name="nickname",
new_name="name",
),
]
operations = [
migrations.RenameField(
model_name="user",
old_name="nickname",
new_name="name",
),
]
3 changes: 2 additions & 1 deletion customk/users/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from common.models import CommonModel
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.db import models

from common.models import CommonModel


class UserManager(BaseUserManager["User"]):
# 일반 유저 생성 함수
Expand Down

0 comments on commit 051fd0b

Please sign in to comment.