Skip to content
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

Chapter 09 - parler TypeError when running "migrate shop" #42

Open
jesusnunezpro opened this issue Apr 24, 2020 · 0 comments
Open

Chapter 09 - parler TypeError when running "migrate shop" #42

jesusnunezpro opened this issue Apr 24, 2020 · 0 comments

Comments

@jesusnunezpro
Copy link

jesusnunezpro commented Apr 24, 2020

After updating models for the shop app, makemigrations runs successfully, but migrate fails with this error:

TypeError: Translatable model <class 'fake.Product'> does not appear to inherit from TranslatableModel

Found this post with a fix that works. It does require a change to the migration file 0002_translations.py

I copied the models from the git repo. Is it my environment or does this happens to everyone?

I'm running my dev environment on Windows 10. Here's my pip freeze:
amqp==2.5.2
asgiref==3.2.7
astroid==2.3.3
billiard==3.6.3.0
braintree==4.0.0
cairocffi==1.1.0
CairoSVG==2.4.2
celery==4.4.2
certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
colorama==0.4.3
cssselect2==0.3.0
defusedxml==0.6.0
Django==3.0.5
django-parler==2.0.1
django-rosetta==0.9.4
flower==0.9.4
html5lib==1.0.1
humanize==0.5.1
idna==2.9
isort==4.3.21
kombu==4.6.8
lazy-object-proxy==1.4.3
mccabe==0.6.1
microsofttranslator==0.8
Pillow==7.1.1
polib==1.1.0
pycparser==2.20
pylint==2.4.4
Pyphen==0.9.5
pytz==2019.3
requests==2.23.0
six==1.14.0
sqlparse==0.3.1
tinycss2==1.0.2
tornado==6.0.4
urllib3==1.25.9
vine==1.3.0
WeasyPrint==51
webencodings==0.5.1
wrapt==1.11.2

I've been trying to install the latest versions to confirm these libraries are still usable.

Any pointers would be appreciated.

Thanks.

-J.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant