google-code-export / django-page-cms

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

patch to fix initial values in connected form #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*Problem description*
I've used PAGE_CONNECTED_MODELS settings and faced with a problem that 
connected model's fields are alway blank, even if connected model exists.

*patch description*
I made some patch, don't know how nice it is, but it fixes this problem 
for me.
Also, I've moved saving connected models to save_model method, rather than 
get_form. As I think, it is better place for it.

BTW, I think, that it's better to use models formset in this situation, 
I'll make that patch soon too :)

Original issue reported on code.google.com by summer.is.gone on 30 Jul 2009 at 10:00

Attachments:

GoogleCodeExporter commented 9 years ago
Should I apply this one or the patches of issue 135 fix everything?

Original comment by batiste....@gmail.com on 3 Aug 2009 at 2:30

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 3 Aug 2009 at 2:33