Skip to content

Commit

Permalink
Remove test_update field.
Browse files Browse the repository at this point in the history
This reverts commit 24fce85
  • Loading branch information
paul121 committed Mar 5, 2020
1 parent 24fce85 commit 73f735a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 34 deletions.

This file was deleted.

2 changes: 0 additions & 2 deletions backend/app/app/crud/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ def create(db_session: Session, *, user_in: UserCreate) -> User:
hashed_password=get_password_hash(user_in.password),
full_name=user_in.full_name,
is_superuser=user_in.is_superuser,
# Temporary test field to test update procedure.
test_update=user_in.test_update,
)
db_session.add(user)
db_session.commit()
Expand Down
2 changes: 0 additions & 2 deletions backend/app/app/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ class User(Base):
hashed_password = Column(String)
is_active = Column(Boolean(), default=True)
is_superuser = Column(Boolean(), default=False)
# Temporary test field to test update procedure.
test_update = Column(Boolean(), default=False)
2 changes: 0 additions & 2 deletions backend/app/app/schemas/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class UserBase(APIModel):
is_active: Optional[bool] = True
is_superuser: Optional[bool] = False
full_name: Optional[str] = None
# Temporary test field to test update procedure.
test_update: Optional[bool] = True

class UserBaseInDB(UserBase):
id: int = None
Expand Down

0 comments on commit 73f735a

Please sign in to comment.