Re: modelform validation errors

2009-08-02 Thread zayatzz
Digging in documentation surely helps :) I had to replace {% if pform.non_field_errors %} {{ pform.non_field_errors.as_ul }} {% endif %} with {{ pform.errors }} to see that about field was causing it. I overrid about field with tinymce

Re: modelform validation errors

2009-08-01 Thread zayatzz
Thanks This might have solved another issue i had not encountered yet, but it did not solve my current issue :) Form is still not valid and i have no idea why. If someone would tell me how modelform error messages are supposed to be used, then they might help me. {% if

Re: modelform validation errors

2009-08-01 Thread prabhu S
The method create_profile returns profile after saving. But this object will not contain primary keys etc generated in the db. To work around this common issue with django profile.save() # Get the data again from db. profile = Profile.objects.get(user=username) return profile Let me know if

Re: modelform validation errors

2009-08-01 Thread zayatzz
I figured ill add the code i have so far: The models: class ProfileManager(models.Manager): def create_profile(self, username): "Creates and saves a User with the given username, e-mail and password." now = datetime.datetime.now() profile =

modelform validation errors

2009-08-01 Thread zayatzz
}} {% endif %} into view, but it is not displaying any validation errors... So how are modelform validation errors supposed to be seen/shown? Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou