blob: 970c48920ca8107709ab5fb044aa1d3a6fa27702 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Document(models.Model):
code = models.IntegerField(default=0)
class Meta:
permissions = [
("approved", "The user is approved")
]
class UserCode(models.Model):
code = models.IntegerField(default=0)
user = models.ForeignKey(User, default=None, on_delete=models.CASCADE)
|