I am trying to use the order_with_respect_to
Django Meta option and reorder items in the admin.
I found https://github.com/bfirsh/django-ordered-model but they doesn't seem to use the native Django API for it.
Do you know does one add this reorder functionality to the Django admin?
The model looks like this:
from django.db import models
class Question(models.Model):
text = models.TextField()
class Answer(models.Model):
question = models.ForeignKey(Question, on_delete=models.CASCADE)
text = models.TextField()
class Meta:
order_with_respect_to = 'question'
I'd like to be able to reorder the answer from the admin.