Re: Easy thumbs in your models

2006-09-27 Thread zenx
you're right, that's better. thank you!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group,

Re: Easy thumbs in your models

2006-09-27 Thread Andrew Gwozdziewycz
Of course you have to "import os.path"On Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting

Re: Easy thumbs in your models

2006-09-27 Thread Andrew Gwozdziewycz
See belowOn Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thumbs when deleting the

Re: Easy thumbs in your models

2006-09-27 Thread zenx
In delete function use: super(MyClass, self).delete() instead of super(Artista, self).delete(). I think everything else is ok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Easy thumbs in your models

2006-09-27 Thread zenx
I needed to make this and I hope it helps some people there. Features: - Generate thumbs from ImageFields when creating the models (file.jpg -> thumbnail saved as: file.thumbnail.jpg) - Showing thumbs in admin - Deleting thumbs when deleting the object In your models.py: