oops, authority_record can be null
This commit is contained in:
parent
40fd95d5d2
commit
5b43299967
|
@ -12,7 +12,7 @@ class AuthorityRecord(models.Model):
|
||||||
|
|
||||||
|
|
||||||
class Feature(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")
|
url = models.CharField(max_length=512, unique=True, verbose_name="URI")
|
||||||
preferred_name = models.CharField(max_length=512)
|
preferred_name = models.CharField(max_length=512)
|
||||||
feature_type = models.ForeignKey("FeatureType", null=True, blank=True)
|
feature_type = models.ForeignKey("FeatureType", null=True, blank=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user