Hello,
I'm trying to write simple blog tool but I ran into some problems. I
would like to attach multiple images to a post. Here's my models:
class Entry(models.Model):
title = models.CharField(max_length=200)
date = models.DateTimeField(auto_now=True)
body = models.TextField()
class Photo(models.Model):
entry = models.ForeignKey(Entry, edit_inline=models.TABULAR,
num_in_admin=10)
photo = models.ImageField(upload_to='photos/%Y/%m/%d', core=True,
blank=True)
Now, when I create very new Entry via admin, I can add 10 images, ok.
So I add some. Then, when I would like to add another ones or to
change the ones already in, it goes wild: all the pictures are deleted
and it is not even possible to add anything. Please, any help?
I read somewhere that perhaps edit_inline is broken or something, is
there another way how to attach multiple images to a post via admin?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---