Re: Can I POST edit form to detail view, and redirect back if invalid?

2012-03-29 Thread Mjumbe Poe
You're correct: HTTP does not allow you to, say, send POST data along in a 30X (redirect) response [1]. You can redisplay the form at your object's URL, but in order to actually do an HTTP redirect back to the form URL, you'd have to pass the form data along in the URL query string or store it on

Re: access fields value in template

2011-09-18 Thread Mjumbe Poe
Also, model_blocks is available from PyPI: pip install django-model-blocks On Sep 18, 2:33 am, Phang Mulianto wrote: > Thanks for the respons. > > i use the items function using > > {% for key, value in object.items %} >   {{ value }} > {% endfor %} > > the problem now.. the field is not a

Re: access fields value in template

2011-09-18 Thread Mjumbe Poe
If I understand your question correctly, this is like the problem that I was trying to solve with django-model-blocks (https://github.com/ mjumbewu/django-model-blocks/). With model_blocks you'd put something like this in your template: {% load model_blocks %} ... {{ object|as_detail