Re: create non-form widgets like a ajax driven table
that sems to be build on templates... but if I do not want to uses templates? is there already something like forms? -- hinnack 2009/9/7 Ben Davis > In django terms, a table is not a widget. Widgets are basically different > input methods for form fields. Django's admin app has a built-in list view > (I think it's called changelist) which you can customize or override. It > basically just takes some effort to dig into the admin contrib app to see > how it's done. There may or may not be options on the ModelAdmin that say > whether or not its editable, but check the docs to be sure. > > > On Mon, Sep 7, 2009 at 11:29 AM, hinnack wrote: > >> >> Hi, >> >> is there a standard way, how to create non form widgets - e.g. a table >> - just showing >> data, no edit possible - therefore no form? >> I know I can create an object, put in a method toHTML or render that >> returns the >> safe HTML/JS code... >> >> But how should it be done? >> >> -- Hinanck >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: create non-form widgets like a ajax driven table
In django terms, a table is not a widget. Widgets are basically different input methods for form fields. Django's admin app has a built-in list view (I think it's called changelist) which you can customize or override. It basically just takes some effort to dig into the admin contrib app to see how it's done. There may or may not be options on the ModelAdmin that say whether or not its editable, but check the docs to be sure. On Mon, Sep 7, 2009 at 11:29 AM, hinnack wrote: > > Hi, > > is there a standard way, how to create non form widgets - e.g. a table > - just showing > data, no edit possible - therefore no form? > I know I can create an object, put in a method toHTML or render that > returns the > safe HTML/JS code... > > But how should it be done? > > -- Hinanck > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
create non-form widgets like a ajax driven table
Hi, is there a standard way, how to create non form widgets - e.g. a table - just showing data, no edit possible - therefore no form? I know I can create an object, put in a method toHTML or render that returns the safe HTML/JS code... But how should it be done? -- Hinanck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---