我们从Python开源项目中,提取了以下28个代码示例,用于说明如何使用django.forms.formsets.ORDERING_FIELD_NAME。
def ordering_field(self): from django.forms.formsets import ORDERING_FIELD_NAME return AdminField(self.form, ORDERING_FIELD_NAME, False)
def ordering_field(self): field = self[ORDERING_FIELD_NAME] field.is_first = False return field # SOURCE: get_formset_class class DeleteProtectedModelForm