-
Notifications
You must be signed in to change notification settings - Fork 98
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
'str' object has no attribute '_meta' #225
Comments
hi |
Hi @samich80 Can you provide some details of your setup, how your defining you model, version of python/Django etc. Cheers! |
Hi yes me too I used the same method to set up please help 🙏🌹 |
Hey @0250902109 Would you be able to drop a snipped of your view, i.e what object is that's being passed to the template. Cheers. |
someone managed to fix this? when adding the tag {% ratings object %} in the template, it throws this error |
Hi @shavakano, would you be able to give us a snippet of your view, the bit that's passing At first glance we'd thought people might be passing in the wrong type of object, but given this keeps coming up it must either be a bug or gap in the documentation - but we can't recreate it ourselves here, so will need someone to share their code to dig into this any further. |
disable and it'll fix the issue. |
I found the solution. The issue is a documentation issue. You are required to set the object parameter in the {% rating object %} on the template. |
I have the smae issue and am wondering how you could have gone about it. I also wanted to extend my Ratings model, do i have to import AbstractBaseRating from star_rating and if so kindly guide |
when i add {% ratings object %} in template, i get the error:
Exception Value: 'str' object has no attribute '_meta'
Exception Location: /usr/local/lib/python3.10/site-packages/django/contrib/contenttypes/models.py, line 27, in _get_opts
The text was updated successfully, but these errors were encountered: