Finally - FIXED!
After a some experimenting with the command line I found out that I can not
access the foreign key field if there is no actual record.
So this throws the error as well:
>>> doc = main_documents.objects.create(doc_name="test",
doc_description="description")
>>> doc.created_by
one more thing, this is the user model setting from settings.py:
AUTH_USER_MODEL = 'accounts.UserAccount'
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to djang
After adding a few more databases and views to my app, I suddenly get the
error mentioned in the subject.
Not sure what happened .. everything worked as a charm before.
This only happens when the program tries to create a new record, I can
change existing ones
It seems as if the "created_by"
3 matches
Mail list logo