-from django.db import models
from django.contrib.auth.models import User
+from django.db import models
from django.utils.translation import ugettext_lazy as _
+
# A very basic data model to begin with
# TODO:
# - Create sensible default options with translation;
# - Ensure pertinence of the comics building way : block by block;
# - Test upload to images file outside the DB ...;
# - ...
-
class Style(models.Model):
"""
TODO: The choice list should be in DB
The default behaviour of class inheritance is to create OnetoOne relationship between parent and child
TODO: Which fields are required to interact with the ads publisher ?
"""
- ADS_PUBLISHER_CHOICES = (
- ('AS', 'Advert Stream'),
- ('TJ', 'Traffic Junky'),
- )
- ads_publisher = models.CharField(max_length=50, choices=ADS_PUBLISHER_CHOICES)
- ads_publisher_login = models.CharField(max_length=50)
+ ADS_PUBLISHER_CHOICES = (
+ ('AS', 'Advert Stream'),
+ ('TJ', 'Traffic Junky'),
+ )
+ ads_publisher = models.CharField(max_length=50, choices=ADS_PUBLISHER_CHOICES)
+ ads_publisher_login = models.CharField(max_length=50)
class Meta:
verbose_name = _('User profile')