Re: problems with errors in templates

2011-04-18 Thread Antonio Sánchez
thanks, i think you are right, but now i cant check it, i'll do it later! thanks! On 17 abr, 23:00, Daniel Roseman wrote: > On Sunday, 17 April 2011 21:41:15 UTC+1, Antonio Sánchez wrote: > > > hi, im working with a modelform, and overrided clen methos for making > > some

problems with errors in templates

2011-04-17 Thread Antonio Sánchez
hi, im working with a modelform, and overrided clen methos for making some custom checks, raising a forms.ValidationError when i need, im sure this error is raised, but i dont know why in the template errors are not showed (instead of form is showed again cause it's not valid!), here is some of the

Re: problems with redirect function

2011-04-11 Thread Antonio Sánchez
#x27;s possible, but i cant do it work! On Apr 11, 12:42 pm, Daniel Roseman wrote: > On Monday, April 11, 2011 12:00:37 AM UTC+1, Antonio Sánchez wrote: > > > hi, im trying to use redirect shortcut, but im having problems passing > > arguments to the view i want to rever

problems with redirect function

2011-04-10 Thread Antonio Sánchez
hi, im trying to use redirect shortcut, but im having problems passing arguments to the view i want to reverse. view definition is this: def profile(request, activation_key=None, new=None): if new is None: return HttpResponse("You're at the profile.") else:

Re: extending django-registration forms

2011-04-07 Thread Antonio Sánchez
i have tried a lot things, but nothing works... only when i delete that field, so that is the problem, but i dont know why!?!? :S On 6 abr, 22:29, Antonio Sánchez wrote: > Hi, im having problems extending django-registration register form. i > have extended auth.User -> UserProfile,

extending django-registration forms

2011-04-06 Thread Antonio Sánchez
Hi, im having problems extending django-registration register form. i have extended auth.User -> UserProfile, and added some attributes, one of this is country, that is a ForeignKey to Country Table (Django- Countries, with all countries). After configuring django-registration, i extend register f

Re: extend User Model for custom fields

2011-03-26 Thread Antonio Sánchez
Yeah sure, i should have used "recommended" word instead of correct. The difference between link i wrote and b-list is that the last one uses a foreign-key, while first uses one-to-one, and this is the way is recommended in doc, so... I think i will follow that post recommendations. Thanks again!

Re: extend User Model for custom fields

2011-03-25 Thread Antonio Sánchez
ith > AUTH_PROFILE_MODULE in settings, which the docs show you how to use. > Yes you can use inheritance, but you might assume it is a good idea to > use what the auth app promotes. > > > > On Fri, Mar 25, 2011 at 9:04 AM, Antonio Sánchez > wrote: > > > hi! i have a ques

extend User Model for custom fields

2011-03-25 Thread Antonio Sánchez
hi! i have a question, which is the best option about extending user model?? here: http://docs.djangoproject.com/en/1.2//topics/auth/#storing-additional-information-about-users they say to create a manual OneToOneField between models and some more stuff, but here: http://docs.djangoproject.