New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error whikle making existing fields translatable - model already has a field #154
Comments
Same problem, my workaround:
|
is not working with django 3.1 |
It looks like this check: if not isinstance(shared_field, (models.Field, TranslatedFieldDescriptor)):
raise TypeError("The model '{0}' already has a field named '{1}'".format(shared_model.__name__, name)) does not work with Django 3.1.
My work around was:
|
This is still an issue |
This is a simple fix as @stefanw detected the problem
#324 |
any update on this? |
I am trying to translate already existing fields on a model class. I got stuck at the very first step, which is subclassing
TranslatableModel
class inCategory
class, and addingTranslatedFields
wrapper to translate selected model fields. I am following a book 'Django by Example' as well as thedjango-parler
instructions on how to do that, however when I runmanage.py makemigrations myapp "add_translation_model"
I am getting the following error :before applying
django-parler
:after applying
django-parler
:I am using Django 1.10.
The text was updated successfully, but these errors were encountered: