Spell fix
[webcomics.git] / comicsporn / models.py
index 0cea8c997e0274ae2acb65162a5bf9aa898c7dde..377473fc7fd437361b6da219fed1033dea639a72 100644 (file)
@@ -1,7 +1,8 @@
-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; 
@@ -9,7 +10,6 @@ from django.utils.translation import ugettext_lazy as _
 # - 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
@@ -32,15 +32,15 @@ class UserProfile(models.Model):
        is_author = models.BooleanField()
        """ 
         The main difference is that the author have is own ads publisher
-        The default behaviour of class inheritance is to create OnetoOne relationship between parent and child 
+        The default behavior 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')
@@ -52,7 +52,7 @@ class Comic_block(models.Model):
        """
        Let's view a comics as an images serie
        """
-       name = models.CharField(_('name'), max_length=50) # probably not useful, it's just simplier to assemble afterwards for author
+       name = models.CharField(_('name'), max_length=50)  # probably not useful, it's just simplier to assemble afterwards for author
        number = models.IntegerField(_('number'))
        content = models.ImageField(upload_to='block_contents')
        # TODO: probably not useful