def get_fields(self, request, obj=None):
        """
        For subclasses of ``Orderable``, the ``_order`` field must
        always be present and be the last field.
        """
        fields = super(BaseDynamicInlineAdmin, self).get_fields(request, obj)
        if issubclass(self.model, Orderable):
            fields = list(fields)
            try:
                fields.remove("_order")
            except ValueError:
                pass
            fields.append("_order")
        return fields
def get_fields ( self , request , obj = None ) : fields = super ( BaseDynamicInlineAdmin , self ) . get_fields ( request , obj ) if issubclass ( self . model , Orderable ) : fields = list ( fields ) try : fields . remove ( "_order" ) except ValueError : pass fields . append ( "_order" ) return fields
For subclasses of ``Orderable``, the ``_order`` field must
        always be present and be the last field.