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
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
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!
>
>
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
4 matches
Mail list logo