--- a/web/hdabo/models.py Fri Jun 10 20:57:45 2011 +0200
+++ b/web/hdabo/models.py Sat Jun 11 03:19:12 2011 +0200
@@ -2,8 +2,8 @@
from django.contrib.auth.models import User
from django.db import models
+from hdabo.fields import SortedManyToManyField
from hdabo.utils import Property
-from hdabo.fields import SortedManyToManyField
import datetime
class Organisation(models.Model):
@@ -20,9 +20,9 @@
class TimePeriod(models.Model):
TIME_PERIOD_CHOICES = (
- (1,u'Primaire'),
- (2,u'Collège'),
- (3,u'Lycée'),
+ (1, u'Primaire'),
+ (2, u'Collège'),
+ (3, u'Lycée'),
)
TIME_PERIOD_DICT = {
u'Primaire': 1,
@@ -41,10 +41,10 @@
class Domain(models.Model):
DOMAIN_PERIOD_CHOICES = (
- (0,u'Global'),
- (1,u'Primaire'),
- (2,u'Collège'),
- (3,u'Lycée'),
+ (0, u'Global'),
+ (1, u'Primaire'),
+ (2, u'Collège'),
+ (3, u'Lycée'),
)
DOMAIN_PERIOD_DICT = {
u'Global': 0,
@@ -70,10 +70,10 @@
class Tag(models.Model):
TAG_URL_STATUS_CHOICES = (
- (0,"null_result"),
- (1,"redirection"),
- (2,"homonyme"),
- (3,"match"),
+ (0, "null_result"),
+ (1, "redirection"),
+ (2, "homonyme"),
+ (3, "match"),
)
TAG_URL_STATUS_DICT = {
@@ -111,7 +111,7 @@
insee = models.CharField(max_length=5, unique=True, blank=False, null=False)
def __unicode__(self):
- return unicode("%s : %s"%(self.name, self.insee))
+ return unicode("%s : %s" % (self.name, self.insee))
class Datasheet(models.Model):
hda_id = models.CharField(max_length=512, unique=True, blank=False, null=False)
@@ -275,4 +275,4 @@
categories = models.ManyToManyField(TagCategory)
-
\ No newline at end of file
+