Comments (9)
i think you need to install django-generic-position? we had this issue
before. try to search the issue tracker.
On 7 Oct 2014 23:04, "Davinder Kumar Meen" [email protected] wrote:
There are some issues while deleting the reviews for an object in
django-admin. I added some reviews to an object but got errors while
deleting the reviews from admin-site.
This is the traceback.Traceback (most recent call last):
File
"/home/user/task/env/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 112, in get_response
response = wrapped_callback(request,_callback_args, *_callback_kwargs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/options.py",
line 432, in wrapper return self.admin_site.admin_view(view)(args,
*_kwargs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 99, in _wrapped_view response = view_func(request, *args, *_kwargs)
File
"/home/user/task/env/local/lib/python2.7/site-packages/django/views/decorators/cache.py",
line 52, in _wrapped_view_func response = view_func(request, _args,
*_kwargs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
line 198, in inner return view(request, _args, *_kwargs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 29, in _wrapper return bound_func(_args, *_kwargs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 99, in _wrapped_view response = view_func(request, _args, *_kwargs)
File
"/home/user/task/env/local/lib/python2.7/site-packages/django/utils/decorators.py",
line 25, in bound_func return func(self, _args2, *_kwargs2) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/options.py",
line 1331, in changelist_view response = self.response_action(request,
queryset=cl.get_queryset(request)) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/options.py",
line 1084, in response_action response = func(self, request, queryset) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/actions.py",
line 36, in delete_selected queryset, opts, request.user,
modeladmin.admin_site, using) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/util.py",
line 109, in get_deleted_objects collector.collect(objs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/admin/util.py",
line 160, in collect return super(NestedObjects, self).collect(objs,
source_attr=source_attr, *_kwargs) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/db/models/deletion.py",
line 201, in collect sub_objs = field.bulk_related_objects(new_objs,
self.using) File
"/home/user/task/env/local/lib/python2.7/site-packages/django/contrib/contenttypes/generic.py",
line 239, in bulk_related_objects return
self.rel.to.base_manager.db_manager(using).filter({
AttributeError: 'str' object has no attribute '_base_manager'
[07/Oct/2014 07:57:20] "POST /admin/review/review/ HTTP/1.1" 500 217586
AttributeError at /admin/review/review/
'str' object has no attribute '_base_manager'—
Reply to this email directly or view it on GitHub
#15.
from django-review.
Yes, please check #8
from django-review.
I am getting the same error even after intalling the django-generic-positions from https://pypi.python.org/pypi/django-generic-positions/0.1.6
from django-review.
Did you install django-generic-positions and django-user-media and add both to your INSTALLED_APPS
?
from django-review.
did you add it to INSTALLED_APPS and ran migrations?
On 8 Oct 2014 14:52, "Davinder Kumar Meen" [email protected] wrote:
I am getting the same error even after intalling the
django-generic-positions from
https://pypi.python.org/pypi/django-generic-positions/0.1.6—
Reply to this email directly or view it on GitHub
#15 (comment)
.
from django-review.
if add django-user-media to installed apps i am getting an error
ImportError: No module named django_libs.views_mixins
from django-review.
so just install django-libs then
On 8 Oct 2014 15:03, "Davinder Kumar Meen" [email protected] wrote:
if add django-user-media to installed apps i am getting an error
ImportError: No module named django_libs.views_mixins—
Reply to this email directly or view it on GitHub
#15 (comment)
.
from django-review.
@davinderkumar I've added django-libs
to django-user-media's requirements.
https://github.com/bitmazk/django-user-media/blob/master/setup.py#L29
from django-review.
Thanx, it is working fine after adding the above mentioned packages.
from django-review.
Related Issues (20)
- render_category_averages breaks on reviews without ratings
- Outdated on Django Packages HOT 3
- Migration error HOT 1
- Approve reviews before they are shown in list of reviews HOT 1
- hvad.descriptors.NoTranslationError When creating a new review HOT 1
- NoReverseMatch error HOT 13
- 'str' object has no attribute '_meta' HOT 10
- ObjectID vs ID ? HOT 1
- Amount of reviews HOT 1
- Subject Field addition HOT 3
- Dot instead of comma HOT 1
- Content-type header is wrong? HOT 2
- TemplateDoesNotExist at ~ HOT 1
- Rest APi
- TypeError: 'class Meta' got invalid attribute(s): base_manager_name HOT 1
- 'Library' object has no attribute 'assignment_tag' error HOT 2
- review modles is missing an on_delete positional argument HOT 1
- Support for Django>=2.0 HOT 1
- Will there be a Django 3.0 support? HOT 3
- how to use it with react UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-review.