Rename Organization to Organisation

Note: the internal fields/variables are still organization !
This commit is contained in:
PCoder 2021-11-28 19:49:51 +05:30
parent 5d05104118
commit 28730542dc
2 changed files with 3 additions and 3 deletions

View file

@ -367,7 +367,7 @@ admin.site.register(TrendsQuantity, TrendsQuantityAdmin)
# Others
admin.site.register(Repository, RepositoryAdmin)
admin.site.register(GMBA_function, GMBAFunctionAdmin)
admin.site.register(Organization, OrganizationAdmin)
admin.site.register(Organisation, OrganizationAdmin)
admin.site.register(RangeOnlineInfo, RangeOnlineInfoAdmin)
admin.site.register(RangeNameTranslation, RangeNameTranslationAdmin)

View file

@ -347,7 +347,7 @@ class GMBA_function(models.Model):
return self.gmba_function
class Organization(models.Model):
class Organisation(models.Model):
CATEGORY_CHOICES = (
('Independent', 'Independent'),
('Public administration > Research Institution', 'Public administration > Research Institution'),
@ -574,7 +574,7 @@ Involved scientist''')
gmba_function = models.TextField(blank=True, null=True, choices=GMBA_FUNCTION_CHOICES)
news_letter = models.BooleanField(default=False)
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)
organization = models.ForeignKey(Organisation, models.DO_NOTHING, blank=True, null=True)
birds = models.BooleanField(default=False)
mammals = models.BooleanField(default=False)
reptiles = models.BooleanField(default=False)