Admin TabularInline show_url doesn't works.

2014-03-14 Thread Fabrizio Alongi
Hi, I've my Django Product and Lists Product with m2m relation with an intermediate model. My problem is that in admin, when I show one List with related products (with TabularInline), in the product row I have a ForeignKey field (rendered with drop down widget) and up to it a string with curren

Re: Django substitute old image of ImageFile

2014-02-24 Thread Fabrizio Alongi
Hi, after I've searched online, and from this reply I have wrote this solution by overriding save method of my model class. def save(self, force_insert=False, force_update=False, using=No

Django substitute old image of ImageFile

2014-02-22 Thread Fabrizio Alongi
Any solutions?? :/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@g

Django substitute old image of ImageFile

2014-02-22 Thread Fabrizio Alongi
Hi, I've searched a lot for this problem, but I never found one real solution. I've a simple Django News model with an ImageField set correctly. *What I need is to delete the old image file when I upload a new image file with ImageField.* What is the best and clear solution? I've others model

Remove old image file of ImageField

2014-02-22 Thread Fabrizio Alongi
Hi, I've my django model with an ImageField. When I update (upload) a new image with the ImageField, the older image file remains in Media Folder. *How can I remove the old files when I update ImageField??* What is the best, clear, and simple approach to solve this problem? I've read a lot, but