Code

Ticket #9665: GetOrderedFormsComment.patch

File GetOrderedFormsComment.patch, 639 bytes (added by mark_hildreth, 5 years ago)
  • django/forms/formsets.py

     
    140140    def _get_ordered_forms(self): 
    141141        """ 
    142142        Returns a list of form in the order specified by the incoming data. 
    143         Raises an AttributeError if deletion is not allowed. 
     143        Raises an AttributeError if ordering is not allowed. 
    144144        """ 
    145145        if not self.is_valid() or not self.can_order: 
    146146            raise AttributeError("'%s' object has no attribute 'ordered_forms'" % self.__class__.__name__)