Hi everyone, Our basic content model pseudo-code is:
class Content(models.Model) class Image(Content) class Story(Content) lead_art = ForeignKey(Content) Content has an ID of course, and Image, Story, etc have a content_ptr_id What we're experiencing from time to time in Django admin is this scenario: A Story will be saved, creating: Content id: 100 Story content_ptr_id: 100 Then an image will be saved, kicking off an upload process. What's happening is that the Content ID will be created, but the Image content_ptr_id won't be created until the file upload completes. This creates a race condition on the Images table. When someone is trying to relate an Image as lead art, we're getting a 500 error because the Content ID we just created doesn't exist yet in Images. So, we're trying to figure out the best way to prevent this from happening. Can anyone offer any advice? Kindest regards, Brandon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.