1👍
You can control the name if you specify a OneToOneField on B with parent_link=True. For example:
class A(TranslatableModel):
translations = TranslatedFields(
name = models.CharField(max_length=30)
)
f = IntegerField()
class B(A):
link_back_to_A = OneToOneField(A, parent_link=True) # specify the name
some_field = ...
See: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.OneToOneField
- [Django]-Django admin – how can I use save_related() to parse data from inline forms?
- [Django]-Understanding / mySQL aka tricking ForeignKey relationships in Django
- [Django]-Django/gunicorn app restart
- [Django]-Which HTTP method should I use to update a session attribute?
- [Django]-Can't initialise ModelForm fields on bound form?
Source:stackexchange.com