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

support request: ManyToOneRel doesn't have expected attributes #154

Closed
funkyfuture opened this issue Jan 20, 2016 · 1 comment
Closed

support request: ManyToOneRel doesn't have expected attributes #154

funkyfuture opened this issue Jan 20, 2016 · 1 comment

Comments

@funkyfuture
Copy link
Contributor

i try to use ajax_selects.make_ajax_field for selecting a many-to-one-relationship.

however, when i run the code, it fails with the following message: `AttributeError: 'ManyToOneRel' object has no attribute 'verbose_name'``

though i can set label and help_textexplicitly, it will eventually fail when the blank attribute gets looked up. the __repr__ of the name field at this point in the function is <ManyToOneRel: Relatedmodelplural.modelsingular>.

any short hint is highly appreciated.

@funkyfuture
Copy link
Contributor Author

it turned out i didn't read the docs properly and used the lookup-class as argument, not its name.

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

1 participant