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

Cannot do initial migration? #87

Open
clasick opened this issue Jan 27, 2019 · 2 comments
Open

Cannot do initial migration? #87

clasick opened this issue Jan 27, 2019 · 2 comments

Comments

@clasick
Copy link

clasick commented Jan 27, 2019

I tried adding Plata to my existing Django 2.1 app but as soon as I ran migrations using ./manage.py makemigrations plata , I get the following error:

  File "/home/vkk/Documents/bfd/core/models.py", line 5, in <module>
    from plata.shop.models import PriceBase
  File "/home/vkk/Documents/bfd/bfdenv/src/plata/plata/shop/models.py", line 549, in <module>
    class OrderItem(models.Model):
  File "/home/vkk/Documents/bfd/bfdenv/src/plata/plata/shop/models.py", line 552, in OrderItem
    order = models.ForeignKey(Order, related_name='items')
TypeError: __init__() missing 1 required positional argument: 'on_delete'

Btw, I'm using Django 2.1.4.

@clasick
Copy link
Author

clasick commented Jan 27, 2019

Okay I figured out the error, it looks like the installation docs at readthedocs haven't been updated. It's still pointing to the old repo at fiee/plata and not at matthiask/plata.

This should be updated to not confuse new users.

edit: On a similar note, it seems like most of the information from the docs is irrelevant now. There is no proper documentation for the most part for the latest version, and the only way to get things done is to go through the examples folder. Kinda bummed.

@fiee
Copy link
Collaborator

fiee commented May 12, 2019

edit: On a similar note, it seems like most of the information from the docs is irrelevant now. There is no proper documentation for the most part for the latest version, and the only way to get things done is to go through the examples folder. Kinda bummed.

It is, and it always was this way. That’s one reason I got stuck. Had no time and need to try further.

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

No branches or pull requests

2 participants