Invalid deleted forms in formsets break form data access

2010-08-12 Thread Tomi Pieviläinen
I first approached the users-list to find out if I was simply doing something wrong, but seems like there's no (obvious) mistake. In a formset with can_delete, fs.is_valid() passes even if some of the deleted forms are invalid. However fs.cleaned_data tries to access every form, including the dele

Django breaks Python 2.5's help()

2007-10-10 Thread Tomi Pieviläinen
It seems that if you have Django installed for Python 2.5, the internal help system breaks up a bit. To reproduce just open the normal shell (not through manage.py), type "help()" and "modules". Setting DJANGO_SETTINGS_MODULE works around this, but shouldn't IMO be required. Also 2.4 works just f

Inline editing without a parent model

2007-06-24 Thread Tomi Pieviläinen
Will there be a possibility to use edit_inline with a model that doesn't have a parent model in newforms admin? It would be really useful to see other lines when you need to input relatively same data (and I was planning to hack some kind of copy&paste functionality in). If this is not going to ha