I have an existing countries class in a database in production but would like to use the Django_Countries model to update all the countries I use.
Here is the existing model. It allows users create a country and upload a flag of their country
class Country(models.Model):
name = models.CharField(_("Name"))
icon = models.ImageField(_("Icon"),upload_to=os.path.join('images', 'flags'))
I want to remove the option of a user creating a country and just have select a country.
I cant really change the existing model as there is a lot of dependencies on it. I just want to add the name and flag to the existing model.
Finally ended up just doing a dump of the countries in to a json file and writing a migration to update the database.