server/python/django/renkanmanager/models.py
author rougeronj
Tue, 05 May 2015 17:59:14 +0200
changeset 445 705a2e9c6c9d
parent 387 87555646dd07
permissions -rw-r--r--
Add popup_editor and editor_panel option to allow the editor panel to bin in an external div Update the scene, the node editor and the edge editor to include the options

'''
Created on Jul 17, 2014

@author: tc
'''
from django.conf import settings
from django.db import models
from easy_thumbnails.fields import ThumbnailerImageField

auth_user_model = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')

class Renkan(models.Model):
    
    owner = models.ForeignKey(auth_user_model, blank=True, null=True)
    rk_id = models.CharField(max_length=1024, unique=True, blank=False, null=False) # typically UUID
    content = models.TextField(blank=True, null=True)
    title = models.CharField(max_length=1024, null=True)
    image = ThumbnailerImageField(upload_to="thumbnails/renkan/", default=settings.DEFAULT_RENKAN_ICON)
    creation_date = models.DateTimeField(auto_now_add=True)
    modification_date = models.DateTimeField(auto_now=True)
    
    class Meta:
        app_label = 'renkanmanager'