models.py 297 Bytes
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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