-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
33 lines (30 loc) · 980 Bytes
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import datetime
from django.db import models
from django.utils import timezone
from django import forms
from django.core import validators
from django.contrib.auth.models import User
# class UserProfile(models.Model):
# user = models.OneToOneField(User)
# activation_key = models.CharField(max_length=40, blank=True)
# key_expires = models.DateTimeField(default=datetime.date.today())
# # status_active = models.BooleanField()
# # list_display = ('status_active')
#
# def __str__(self):
# return self.user.username
#
# class Meta:
# verbose_name_plural = u'User profiles'
#
#
# class Link(models.Model):
# user_id = models.IntegerField()
# # link_title = models.TextField()
# link = models.TextField()
# link_description = models.TextField()
# creation_date = models.DateTimeField('date created', auto_now_add=True)
# private_flag = models.BooleanField()
#
# def __str__(self):
# return self.link