adding model_dict['admin'] = model_admin is good idea?

2011-03-03 Thread hdknr
Hello, I'm customizing admin UI to add extra menus but I found it is not easy. So thinking of adding "admin" to model_dict in index() and app_index() ( source:django/trunk/django/contrib/admin/sites.py ) to refere to ModeAdmin objects in templates. Is there any pitfall in the security point of vie

Re: adding model_dict['admin'] = model_admin is good idea?

2011-03-04 Thread hdknr
() of that. --- hideki On 3月5日, 午前2:07, Bill Freeman wrote: > On Fri, Mar 4, 2011 at 1:51 AM, hdknr wrote: > > Hello, > > > I'm customizing admin UI to add extra menus but I found it is not > > easy. So thinking of adding "admin" to model_dict in index

Render selected item labels in preview page of form data

2010-04-11 Thread hdknr hidelafoglia
Hi,all About my note on http://post.ly/Zaws . I'm using the FormPreview class to process form submissions. It can't render selected item labes,but only render selected item value. I'd like to know better ways to render preview page of form inputs. Any idea welcome. Thanks in advance. hd