Re: Is the initial value of a form field available in the template?

2011-04-21 Thread Sarang
This works: form.initial.fieldname -- 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 django-users+unsubscr...@googlegroups.com. For

Re: Google App Engine supports Django 1.2!

2011-02-13 Thread Sarang
Thanks for the clarification. Yes, I am using django-nonrel which installed 1.3.0 alpha 1 for me. Regards, Sarang -- 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@googlegrou

inline formset validation error

2011-02-13 Thread Sarang
no error as the user has set some value to the field "tag". However, the user has not touched the other two forms. I thought the extra forms are optional isn't it? If their data is not valid, shouldn't Django ignore them and move on? Am I doing something wrong and is

Re: Google App Engine supports Django 1.2!

2011-02-12 Thread Sarang
Thats nice! Does this version of Django support the datastore too? The current Django I am using w/ GAE is 1.3.0 Alpha 1 and I am wondering if switching to the latest GAE SDK would be an issue. Regards, Sarang -- You received this message because you are subscribed to the Google Groups

Re: has_changed not working for Date field in modelForm

2011-02-10 Thread Sarang
Sorry, forgot to mention that after the above code change, has_changed() is indeed working properly! -- 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 gr

Re: has_changed not working for Date field in modelForm

2011-02-10 Thread Sarang
I changed the code in SelectDateWidget (django/forms/extras) to return month as '01' instead of '0'. I do not know if this problem is GAE specific. I would appreciate if someone from Django dev group confirms this issue and provides an appropriate fix. if y and m and d: if s

Re: has_changed not working for Data field in modelForm

2011-02-10 Thread Sarang
Further update. I think the problem is the database (GAE Datastore) stores the month as "01" whereas the SelectDataWidget that I am using (from django/forms/extras) is returning "1" for the month and hence they do not compare! Any ideas how I can fix the select data wi

has_changed not working for Data field in modelForm

2011-02-10 Thread Sarang
field.widget._has_changed(initial_value, data_value): self._changed_data.append(name) I have described the problem within the code above. This happens on Django 1.2.3 as well as 1.3 alpha1. Any ideas how this can be resolved? Thanks Sarang -- You received this message because