Re: Django: How to customize the admin form for specific model

2015-02-03 Thread carlos
Hi, in addition Collin answer you need use sorl-thumbnail in show picture in admin http://sorl-thumbnail.readthedocs.org/en/latest/examples.html#admin-examples Cheers On Tue, Jan 27, 2015 at 2:11 PM, Collin Anderson wrote: > Hi, > > You could have the images be inline: > > class CommentImageInl

Re: Django: How to customize the admin form for specific model

2015-01-27 Thread Collin Anderson
Hi, You could have the images be inline: class CommentImageInline(models.TabularInline): model = CommentImage extra = 0 class CommentAdmin(models.ModelAdmin): inlines = [CommentImageInline] Though, you may need to use a custom widget to get the actual images to show up. Collin On

Re: Django: How to customize the admin form for specific model

2015-01-24 Thread Thomas Rega
You could get this things done by customization of the corresponding admin template: templates/admin/change_form.html This can be done per app and per model: https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model Good Luck TR 2015-01-24 20:31

Django: How to customize the admin form for specific model

2015-01-24 Thread Shoaib Ijaz
First of all I apologize the question title can be unrelated to my query. I am also confused what I want to do because I am less familiar with django. I want to create simple comment system. The requirement is clear that user can post comment with multiple images.Every comment should have repl