On Apr 4, 1:44 pm, Robert <[email protected]> wrote:
> Hi,
>
> I get OperationalError: (1364, "Field, 'user_id' doesn't have a
> default value")
>
> As I understand, the many-to-many relationship shall be taken care of
> by a join table.No such table shows up when I run mysql show tables;.
> I have of course run a syncdb command. All other tables are present.
>
> Thanks DR
>
> Robert

Did you previously have a ForeignKey, but changed it to a ManyToMany?
If so, remember syncdb doesn't change existing tables. You'll need to
do the migration manually, or if you don't have any data worth keeping
you can just drop the tables and rerun syncdb to recreate them.
--
DR.

-- 
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?hl=en.

Reply via email to