findList
This commit is contained in:
parent
1ab2e416bb
commit
a70f0929e6
5 changed files with 170 additions and 19 deletions
|
|
@ -8,8 +8,11 @@ from django.db import models
|
|||
from django.conf import settings
|
||||
|
||||
from ox.utils import json
|
||||
from ox.django.fields import DictField
|
||||
|
||||
from app.models import site_config
|
||||
from itemlist.models import List
|
||||
|
||||
|
||||
class UserProfile(models.Model):
|
||||
reset_token = models.TextField(blank=True, null=True, unique=True)
|
||||
|
|
@ -17,7 +20,7 @@ class UserProfile(models.Model):
|
|||
|
||||
files_updated = models.DateTimeField(default=datetime.now)
|
||||
newsletter = models.BooleanField(default=True)
|
||||
|
||||
ui = DictField(default={})
|
||||
|
||||
def user_post_save(sender, instance, **kwargs):
|
||||
profile, new = UserProfile.objects.get_or_create(user=instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue