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