Re: Strange behaviour of django of form submit by POST

2015-04-07 Thread Luigi Cirillo
sorry, I posted the code of thefile venv/local/lib/python2.7/site-packages/django/template/response.py at line 83 with the # but the real code that I execute is: # ... @property def rendered_content(self): """Returns the freshly rendered

Strange behaviour of django of form submit by POST

2015-04-06 Thread Luigi Cirillo
Hello, I am going mad for a strange behaviour of django. I have this packages installed in a virtualenv: ## Django==1.6.10 South==1.0.2 argparse==1.2.1 dj-database-url==0.3.0 django-appconf==1.0.1 django-classy-tags==0.6.1 django-cms==3.0.12 django-compressor==1.4 django

Re: Get form from modelformset by the model associated in template

2014-11-04 Thread Luigi Cirillo
Yes, thank you Collin On Monday, November 3, 2014 2:14:53 AM UTC+1, Collin Anderson wrote: > > Hi Luigi, > > Do you want something like this? > > {% for form in modelformset %} > The object: {{ form.instance }} > The form: {{ form }} > {% endform %}} > > Collin > > -- You received this m

Get form from modelformset by the model associated in template

2014-10-30 Thread Luigi Cirillo
Hi all, I think it is a simple question but I don't know how I can get the specific form associated to a model from a modelformset inside a template. In other words I am extending a ListView and I pass a modelformset through the context. So in the template: {% for object in object_list %} {{