Git Product home page Git Product logo

Comments (9)

mbrochh avatar mbrochh commented on July 17, 2024

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.

Tyrdall avatar Tyrdall commented on July 17, 2024

Yes, please check #8

from django-review.

davinderkumar avatar davinderkumar commented on July 17, 2024

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.

Tyrdall avatar Tyrdall commented on July 17, 2024

Did you install django-generic-positions and django-user-media and add both to your INSTALLED_APPS?

from django-review.

mbrochh avatar mbrochh commented on July 17, 2024

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.

davinderkumar avatar davinderkumar commented on July 17, 2024

if add django-user-media to installed apps i am getting an error
ImportError: No module named django_libs.views_mixins

from django-review.

mbrochh avatar mbrochh commented on July 17, 2024

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.

Tyrdall avatar Tyrdall commented on July 17, 2024

@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.

davinderkumar avatar davinderkumar commented on July 17, 2024

Thanx, it is working fine after adding the above mentioned packages.

from django-review.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.