Re: need help with admin list images

2010-09-18 Thread Wai Yi Leung
Try: > > class PartnerAdmin(admin.ModelAdmin): >list_display = ('xx','AdminTag',) >search_fields = ['AdminTag','Title','Description'] > >def xx(self, instance): >return '' % > (instance.Thumbnail) >xx.allow_tags=True Since the admin funct

Re: Create field of a model dynamically

2009-01-16 Thread Wai Yi Leung
Well, I've implementend this 'kind of model' using 3 Models: http://www.djangosnippets.org/snippets/1286/ Take a look, and with some modification you should have your working model. Wai Yi Leung e-Sensei Technical Programmer 2009/1/16 Julien > > Hi, > > I

Re: Need URL help

2009-01-13 Thread Wai Yi Leung
the suggestions. I am getting closer to figuring it > out. Now my error is this: > > commodity() takes exactly 2 arguments (1 given) > > My URL is: > (r'^commodity/$', 'commodity'), > > The Form statement: > > > Thank you! > >

Re: Need URL help

2009-01-13 Thread Wai Yi Leung
Hi May, Try to debug in shell, this will give you more information. Lets print the 'p' value after having it set with get_object_or_404 ... And I think you are a bit messing with which method to call. You are generating the page with the form that contains errors. So lets check your index() me