hi it's about checking confirmations Field class Foo(Form): .... pass = CharField(min_length=6,max_length=20) repass = CharField(min_length=6,max_length=20)
def pass_matched(self): if self.fields['pass'] == self.fields['repass']: return True else: return False 1) pass_matched always return False how can i compare two fields in my class??? suggestions ---------------- 1) x = *Field() foo = ConfirmationField(relat_to = 'x') 2) x=Foo(data) x.errors return a dict with a huge string may use by web designer, i suggest it should return error_code it's more flexible , like {'pass': [u'Ensure this value has at least 6 characters.']} would change to : MIN_LENGTH_ERR = 0x0001 {'pass': ['0x0001']} or {'pass': ['MIN_LENGTH_ERR']} --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---