From c759bb774c9ab89c091315bcdfdbffad982bda92 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 18 Feb 2012 18:00:42 +0530 Subject: [PATCH] null=True for trans fields to facilitate data import on server --- manifests/ships/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/ships/models.py b/manifests/ships/models.py index f3eec93..956dd34 100644 --- a/manifests/ships/models.py +++ b/manifests/ships/models.py @@ -21,12 +21,12 @@ class Ship(models.Model): number = models.IntegerField(max_length=20) date = models.DateField() ship_name = models.CharField(max_length=255) - ship_name_trans = models.CharField(max_length=255, blank=True) + ship_name_trans = models.CharField(max_length=255, blank=True, null=True) captain = models.CharField(max_length=255) - captain_trans = models.CharField(max_length=255, blank=True) + captain_trans = models.CharField(max_length=255, blank=True, null=True) flag = models.CharField(max_length=255) owner = models.CharField(max_length=255) - owner_trans = models.CharField(max_length=255, blank=True) + owner_trans = models.CharField(max_length=255, blank=True, null=True) port = models.CharField(max_length=255) country = models.CharField(max_length=255)