I have django 1.10 project. There are I have a model Feedback:
class Feedback(FirstMixin, SecondMixin, models.Model):
company = models.OneToOneField(
verbose_name='Company',
to=Company,
related_name='feedback'
)
This model exists and DB table's column Company is filled by keys to Company's items.
Now I need to add some new field to the model:
custom_name = models.CharField(
verbose_name='Company Custom Name',
null=False,
max_length=settings.DATABASE_STRING_LENGTH
)
This field should store custom names of Companies.
What should I do to make values of this field the same as relevant Companies names during migration? Should I change migration's code or is there are some way to define it in model?