Comments (3)
Maybe I need to change sort_value_field_name
from django-sortedm2m.
I tried to replicate this in a branch here:
Doing this properly requires migrating, running the server, creating data, switching to this branch, and then migrating just the new migration. Currently, there are a lot of migration tests but they don't seem to create data, so it wouldn't be a fair comparison to what you did.
This tells me that I cannot reproduce your error. The cars
field definition is in this repo, and you can see that it doesn't set a related_name or a sort_value. I haven't tried toggling those.
I'm testing with postgres and 4.1.7
from django-sortedm2m.
python3 manage.py makemigrations
Also, it doesn't automatically pick up a RenameField
for me. The generated migration for me deletes the relationship and adds a new one. That's fine, Django isn't smart enough to understand it was renamed. I manually had to put in the RenameField.
Maybe you mixed up new_name / old_name? I don't have enough information to tell.
from django-sortedm2m.
Related Issues (20)
- Migration from ManyToManyField to SortedManyToManyField
- German translation missing in pypi package HOT 3
- 3.0.1 seems to brake drag&drop ordering HOT 3
- Popup for creating new entity for relational field is not closing due to js error HOT 3
- Drag'n'drop sorting with select2 autocomplete widget
- SortedManyToManyField. Getting an error HOT 4
- JS error on latest master HOT 9
- Pytest error HOT 1
- [feature] Allow overriding/customizing widget
- Replace Travis HOT 1
- Use drag and drop in custom form? HOT 3
- Can't load SortedManyToManyField
- Error when using "through" intermediate model HOT 3
- New release with support for django 3.2 HOT 6
- Django SortedManyToManyField does not save order in reverse relation
- issue running Tox/tests
- Drag and drop is not working in StackInline admin HOT 1
- The module recreates the rows of the intermediate table HOT 1
- Broke in Django 5.0? HOT 7
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-sortedm2m.