update files archive api
This commit is contained in:
parent
7e789242a1
commit
d4e1dd85d5
7 changed files with 335 additions and 306 deletions
|
|
@ -11,6 +11,8 @@ from django.utils import simplejson as json
|
|||
class UserProfile(models.Model):
|
||||
recover_key = models.TextField()
|
||||
user = models.ForeignKey(User, unique=True)
|
||||
|
||||
files_updated = models.DateTimeField(default=None)
|
||||
|
||||
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