Skip to content

Commit

Permalink
Merge from 3.2 branch (I had almost forgotten about it):
Browse files Browse the repository at this point in the history
 Log message for revision 69301:
  Fix #681: IFormFields is missing declaration for omit()
  • Loading branch information
philikon committed Aug 12, 2006
1 parent b1f3b7e commit 8525deb
Show file tree
Hide file tree
Showing 2 changed files with 847 additions and 1 deletion.
2 changes: 1 addition & 1 deletion form.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def select(self, *names):
return self.__class__(*[self[name] for name in names])

def omit(self, *names):
"""Return a modified instance with an ordered subset of fields."""
"""Return a modified instance omitting given fields."""
return self.__class__(*[ff for ff in self if ff.__name__ not in names])

Fields = FormFields
Expand Down
Loading

0 comments on commit 8525deb

Please sign in to comment.