minor change
This commit is contained in:
+10
-1
@@ -1,3 +1,12 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
from django.urls import reverse
|
||||
|
||||
# Create your models here.
|
||||
class User(AbstractUser):
|
||||
is_citizen = models.BooleanField(default=False)
|
||||
is_moderator = models.BooleanField(default=False)
|
||||
is_resolver = models.BooleanField(default=False)
|
||||
phone = models.CharField(max_length=15, blank=True, null=True)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('home')
|
||||
Reference in New Issue
Block a user