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

related_name does not work in models #288

Closed
bootandy opened this issue Jul 7, 2013 · 5 comments
Closed

related_name does not work in models #288

bootandy opened this issue Jul 7, 2013 · 5 comments
Assignees
Milestone

Comments

@bootandy
Copy link
Contributor

bootandy commented Jul 7, 2013

Adding a relation eg: to the class Comment in examples/blog/models.py
post = models.ForeignKey(Post, related_name="comments")

breaks the tests

@AndrewIngram
Copy link
Contributor

Have you tried putting fk_name = 'comments' on the Inline class?

@ghost ghost assigned pydanny Jul 8, 2013
@pydanny
Copy link
Member

pydanny commented Jul 8, 2013

Hey @AndrewIngram - Not yet. I'll try it in the next 24 hours. Thanks for the quick response!

@pydanny pydanny mentioned this issue Jul 8, 2013
@pydanny
Copy link
Member

pydanny commented Jul 8, 2013

@AndrewIngram we haven't implemented this feature yet. Also, it may not be the problem area. I'll dig in after the 0.5.0 release. This is why we're still in ALPHA. 💯

@bootandy
Copy link
Contributor Author

bootandy commented Jul 9, 2013

adding fk_name made no difference for me. I'll try and put together a test case for extra-views

@bootandy
Copy link
Contributor Author

Fixed it by regenerating all the request data on a POST request.

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

No branches or pull requests

3 participants