Rename foreign key from country_lookup to country

This commit is contained in:
PCoder 2021-11-22 12:59:07 +05:30
parent b6a45c9677
commit f97b805f76

View file

@ -500,7 +500,7 @@ class Person(models.Model):
entry_date = models.TextField(blank=True, null=True)
gmba_function = models.TextField(blank=True, null=True)
news_letter = models.BooleanField(default=False)
country_lookup = models.ForeignKey(Country, models.DO_NOTHING, blank=True, null=True)
country = models.ForeignKey(Country, models.DO_NOTHING, blank=True, null=True, to_field='id')
organization = models.ForeignKey(Organization, models.DO_NOTHING, blank=True, null=True)
birds = models.BooleanField(default=False)
mammals = models.BooleanField(default=False)