mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
First commit: basic users
This commit is contained in:
17
core/models.py
Normal file
17
core/models.py
Normal file
@ -0,0 +1,17 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
|
||||
import logging
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
class User(AbstractUser):
|
||||
nick_name = models.CharField(max_length=30)
|
||||
|
||||
def __str__(self):
|
||||
return self.get_username()
|
||||
|
||||
class Page:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user