That's a spot on, DR.

I'll try that and I'm sure it will work out.

Have an excellent day.

R

On 4 apr, 15:03, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Apr 4, 1:44 pm, Robert <rob...@iteria.no> 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 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.

Reply via email to