Comments (2)
Environment:Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6.3
Python Version: 3.4.0
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'adminsortable',
'mall',
'cart',
'customer',
'product',
'topic',
'transaction',
'wishlist')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'vs.middlewares.SpacelessMiddleware')
Traceback:
File "/some/path/.env/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response101.resolver_match = resolver.resolve(request.path_info)
File "/some/path/.env/lib/python3.4/site-packages/django/core/urlresolvers.py" in resolve333.for pattern in self.url_patterns:
File "/some/path/.env/lib/python3.4/site-packages/django/core/urlresolvers.py" in url_patterns361.patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/some/path/.env/lib/python3.4/site-packages/django/core/urlresolvers.py" in urlconf_module356.self._urlconf_module = import_module(self.urlconf_name)
File "/some/path/.env/lib/python3.4/importlib/__init__.py" in import_module104.return _bootstrap._gcd_import(name[level:], package, level)
File "/some/path/vs/vs/urls.py" in <module>7. admin.autodiscover()
File "/some/path/.env/lib/python3.4/site-packages/django/contrib/admin/__init__.py" in autodiscover29.import_module('%s.admin' % app)
File "/some/path/.env/lib/python3.4/importlib/__init__.py" in import_module104.return _bootstrap._gcd_import(name[level:], package, level)
File "/some/path/vs/mall/admin.py" in <module>10. admin.site.register(HomepageItem, HomepageItemAdmin)
File "/some/path/.env/lib/python3.4/site-packages/django/contrib/admin/sites.py" in register95.self._registry[model] = admin_class(model, self)
File "/some/path/.env/lib/python3.4/site-packages/adminsortable/admin.py" in __init__72.self._add_reorder_method()
File "/some/path/.env/lib/python3.4/site-packages/adminsortable/admin.py" in _add_reorder_method129.setattr(self, '_reorder', MethodType(func, self, type(self)))
Exception Type: TypeError at /
Exception Value: method expected 2 arguments, got 3
from django-admin-sortable2.
Indeed! This was dropped in Python 3.3
Thanks
from django-admin-sortable2.
Related Issues (20)
- DAS2 v2.x appears to assume fields are in Mutable Containers HOT 1
- Signal for Model is not Triggered when Item is Dragged HOT 3
- missing template(s) for Django 4.2 HOT 3
- No handle
- Newer order values voilates the field rule of PositiveIntegerField HOT 11
- Incorrect code example in documentation (Sec. "Many-to-Many Relations")
- Don't install testapp and its child modules HOT 8
- adminsortable2 - TemplateNotFound HOT 2
- Make *only* inlines sortable and not the base model admin?!? HOT 2
- 2.1.9 version inconsistent?
- RecursionError: maximum recursion depth exceeded while calling a Python object HOT 1
- Unable to see sort column (no pads) v2.1.9 HOT 3
- Admin UI does not get added HOT 1
- Question about default value of order field HOT 4
- small typo + latest docs are not deployed? HOT 2
- What about supporting Python 3.11 and 3.12? HOT 2
- Why not adapt for django 3.2? HOT 6
- Sorting does not work for StackedInline if widget of the field has <table> HOT 2
- I am trying to add a custom formset and extend it with django.forms.models.Baseinlineformset which is not working as it is raising the error "BaseFormSet.__init__() got an unexpected keyword argument 'default_order_direction'
- Is SortableStackedInline compatible with django-polymorphic?
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-admin-sortable2.