Hey Michael,

I ran across this article a couple days ago that seems to have a 
workaround to your problem:

http://scottbarnham.com/blog/2007/08/22/edit-inline-with-imagefield-or-filefield-in-django-admin/

Hope that helps,
Aaron

Michael Newman wrote:
> I am trying this new way of inheriting a lot of information for a
> project I am working on. This site I need to extend the user profile,
> then certain people can have their own sites and then those sites can
> have 10 photographs to add to a slide show.
>
> so I have:
>
> exampleapp.py
> -- models.py
>
> class Profile(models.Model):
>    models.ForeignKey(User, unique=True)
>    ...
>
> class WebSite(models.Model):
>    models.ForeignKey(Profile)
>    ...
>
> class WebsiteImage(models.Model):
>    models.ImageField(upload_to='myimagedir', core=True)
>    models.ForiegnKey(WebSite, edit_inline=models.TABULAR,
> num_in_admin=10,max_num_in_admin=10)
>    ...
>
> I create a Website and save a bunch of images. I click back on the
> WebSite to edit it. I click save without editing anything. Go back to
> look at the item and the Images are no longer there. Nor are the
> database tables.
>
> This is really confusing. Does anyone have any ideas? Is this a known
> issue or something dumb that I am doing? Thanks in advance for any
> help.
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to