I have an existing model and I want to make it orderable with django-ordered-model
, which I chose because it is integrated with django.contrib.admin
.
Right now the model is ordered by pk
, and I'd like to preserve that ordering. When I run manage.py makemigrations
it asks me:
You are trying to add a non-nullable field 'orderable' to Item without a default;
we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows)
2) Quit, and let me add a default in models.py
Both options seem wrong. What should I do?