[Answered ]-Is it possible to reorder django fields with rest api (getting the new order with requests)?

1👍

we handle this issue by defining an index field with an integer type that is like a point for any object, after that with use of Meta class in model class, the object’s ordered with this field

Class UModel(models.Model):
    .
    .
    index = models.IntegerField()
    class Meta:
         ordering = ('-index',)

Leave a comment