diff options
Diffstat (limited to 'ishtar/furnitures/models.py')
| -rw-r--r-- | ishtar/furnitures/models.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/ishtar/furnitures/models.py b/ishtar/furnitures/models.py index 5e51c8959..9c7673f43 100644 --- a/ishtar/furnitures/models.py +++ b/ishtar/furnitures/models.py @@ -209,14 +209,13 @@ class Item(models.Model):                              verbose_name=_(u"Registration Unit"))      material_type = models.ForeignKey(MaterialType,                                verbose_name = _(u"Material type")) -    dating = models.ForeignKey(Dating, verbose_name=_(u"Dating"))      is_isolated = models.BooleanField(_(u"Is isolated?"))      volume = models.FloatField(_(u"Volume"))      weight = models.IntegerField(_(u"Weight"))      item_number = models.IntegerField(_("Item's number"))      documentations = models.ManyToManyField(Source)      treatments = models.ManyToManyField("Treatment") -    datings = models.ManyToManyField("Dating") +    datings = models.ForeignKey(Dating, verbose_name=_(u"Dating"))      def __unicode__(self):          return self.label @@ -288,7 +287,7 @@ if settings.COUNTRY == 'fr':  class Town(models.Model):      name = models.CharField(_(u"Name"), max_length=100)      surface = models.IntegerField(_(u"Surface")) -    center = PointField(_(u"Localisation"), srid=settings.SRID) +    center = models.PointField(_(u"Localisation"), srid=settings.SRID)      if settings.COUNTRY == 'fr':          numero_insee = models.CharField(u"Numéro INSEE", max_length=5)          canton = models.ForeignKey(Canton, verbose_name=u"Canton") | 
