On 8/6/07, justquick <[EMAIL PROTECTED]> wrote:
>
> AttributeError: 'str' object has no attribute '_meta'

This problem is unrelated to Image or FileFields - the problem is your
ForeignKey.

String-form foreign key references only work with models defined in
the same application. If you want to reference the User model, you
will need to add

from django.contrib.auth.models import User

to the top of your file, and change your ForeignKey reference to:

     owner = ForeignKey(User)

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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