Monday, August 3, 2015

DB migration bug in 1.8.3 when creating ManyToMany relation.

Hi Everyone,
Does anyone experience a bug in 1.8.3 on creating ManyToMany relations? I have the following very simple code:

from django.contrib.auth.models import User

class Agent(models.Model):

    name = models.CharField(max_length=100)
    users = models.ManyToManyField(User, related_name='accessible_agents', default=[])

and when I have an empty database, and do python manage.py migrate.

It gives me error, and I tested on 1.7.8, it works fine.


Can anyone help?

Thanks

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f0e2c26c-5ba5-4b82-ad89-18ae4ba73555%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment