From 5b432999674ff8c32dc3173c59722b981a1a11a1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 28 Aug 2011 03:14:41 +0530 Subject: [PATCH] oops, authority_record can be null --- gazetteer/places/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazetteer/places/models.py b/gazetteer/places/models.py index 2d2333f..a3e8416 100644 --- a/gazetteer/places/models.py +++ b/gazetteer/places/models.py @@ -12,7 +12,7 @@ class AuthorityRecord(models.Model): class Feature(models.Model): - authority_record = models.ForeignKey(AuthorityRecord) + authority_record = models.ForeignKey(AuthorityRecord, null=True, blank=True) url = models.CharField(max_length=512, unique=True, verbose_name="URI") preferred_name = models.CharField(max_length=512) feature_type = models.ForeignKey("FeatureType", null=True, blank=True)