Fakultas Ilmu Komputer UI

Commit 3dac0125 authored by Dave Nathanael's avatar Dave Nathanael
Browse files

[REFACTOR] Remove duplicate base fields on Account model

parent 678a4d2c
Pipeline #41439 passed with stages
in 5 minutes and 4 seconds
......@@ -29,7 +29,6 @@ class AccountHistory(HistoryModel):
class Account(HistoryEnabledModel):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
user = models.OneToOneField(User, on_delete=models.CASCADE)
name = models.CharField(max_length=128)
email = models.EmailField(max_length=128)
......@@ -38,7 +37,6 @@ class Account(HistoryEnabledModel):
is_admin = models.BooleanField(default=False)
is_verified = models.BooleanField(default=False)
is_active = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True)
author = models.ForeignKey(
"self",
blank=True,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment