I'm not sure if this is a bug in the django admin app or if it's a bug
in my code.
I have these models:
class Attachment(models.Model):
file = models.FileField(upload_to="attachments",null=True)
...
class Announcement(models.Model):
...
attachments = models.ManyToManyField(Attachment,blank=True)
...
When I Add a new announcement in the django admin and hit 'Save' I am
brought to an error page that says:
DoesNotExist at /admin/student_update/announcement/add/
Attachment does not exist for {'pk': None}
Request Method: POST
Request URL:
http://djanghost.mine.nu:8001/admin/student_update/announcement/add/
Exception Type: DoesNotExist
Exception Value: Attachment does not exist for {'pk': None}
Exception Location:
/home/santuri/magic-removal/django/db/models/query.py in get, line 191
The announcement Saves just fine, I just get this nast DoesNotExist
error. Any thoughts?
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
-~----------~----~----~----~------~----~------~--~---