2011-10-28から1日間の記事一覧
class ValidationError(object): pass class Foo(object): def clean(self): print "hey" if self.cleaned_data["x"] < self.cleaned_data["y"]: raise ValidationError class Bar(object): def clean(self): print "hoo" if self.cleaned_data["x"] < self.…