chintan39 / wildblog

Automatically exported from code.google.com/p/wildblog
Other
0 stars 0 forks source link

Model and Form sub-items (20h) #267

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When we edit some complex object (there are some joined tables in the DB back 
end) we have to edit everything separately. If we could create one complex 
model from several simple, then we can edit the object as a whole. Form will 
have to support this hierarchical models.

Example of model hierarchy:
Gallery
 * title
 * desc
 * images[]
    * Image A
       * title
       * path
    * Image B
       * title
       * path
 * calendarEvent
    * CalendarEvent
       * title
       * date

Then in form it would look like:
<input name="title">
<input name="desc">
<input name="images[0][title]">
<input name="images[0][path]">
<input name="images[1][title]">
<input name="images[1][path]">
<input name="calendarEvent[title]">
<input name="calendarEvent[path]">

Original issue reported on code.google.com by horak.honza@gmail.com on 11 Jan 2012 at 5:20