kmpekala / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

newthread rudimentary function fix #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I fixed the rudimentary old newthread function to a better maintainable one.
It took me a long time to discover how to do that, but reading
documentation and other people's code I realized that forms can have a
"prefix" argument.
I've split the big form in 3 independent partialforms which use the
existing models.

By the way I fixed one error that caused the rendering template to fail in
"newthread.html".

I generated the patch with "git diff" because I don't use svn. Anyways I
think that the result file is the same than if I did it with "svn diff".

Greetings from Spain,
Rafa Muñoz Cárdenas.

Original issue reported on code.google.com by byme...@gmail.com on 28 Sep 2009 at 2:48

Attachments: