Remove unique constraint from MountainRange
This commit is contained in:
parent
0d3bbb3154
commit
53e5ca548e
1 changed files with 5 additions and 2 deletions
|
@ -88,7 +88,7 @@ class MountainRange(models.Model):
|
|||
name = models.TextField(blank=True, null=True)
|
||||
countries = models.TextField(blank=True, null=True)
|
||||
|
||||
range_name_map = models.CharField(blank=True, null=True, unique=True, max_length=128)
|
||||
range_name_map = models.CharField(blank=True, null=True, max_length=128)
|
||||
range_name = models.CharField(blank=True, null=True, max_length=128)
|
||||
range_name_ascii = models.CharField(blank=True, null=True, max_length=128)
|
||||
range_name_language = models.ForeignKey(Language, models.DO_NOTHING, blank=True, null=True, to_field='id')
|
||||
|
@ -426,7 +426,10 @@ class Organisation(models.Model):
|
|||
|
||||
class RangeOnlineInfo(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
range_name = models.ForeignKey(MountainRange, models.DO_NOTHING, blank=True, null=True, to_field='range_name_map')
|
||||
# This is supposed to be linked to MountainRange via range_name_map, but the range_name_map
|
||||
# is not itself unique. Are we missing something? TODO: Investigate
|
||||
# range_name = models.ForeignKey(MountainRange, models.DO_NOTHING, blank=True, null=True, to_field='range_name_map')
|
||||
range_name = models.TextField(blank=True, null=True)
|
||||
info_source = models.TextField(blank=True, null=True)
|
||||
url = models.TextField(blank=True, null=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue