aino/django-primate — pull request #7 by beaucephus (2012-01-26 18:42:03+00:00)
Title: Updated UserBase model to have related names for groups and permissions

Using Django 1.3.1 on a fresh project to test I was getting this error with just one model:'

*auth.user: Accessor for m2m field 'groups' clashes with related m2m field 'Group.user_set'. Add a related_name argument to the definition for 'groups'.*
*auth.user: Accessor for m2m field 'user_permissions' clashes with related m2m field 'Permission.user_set'. Add a related_name argument to the definition for 'user_permissions'.*
*myapp.user: Accessor for m2m field 'groups' clashes with related m2m field 'Group.user_set'. Add a related_name argument to the definition for 'groups'.*
*myapp.user: Accessor for m2m field 'user_permissions' clashes with related m2m field 'Permission.user_set'. Add a related_name argument to the definition for 'user_permissions'.*

Adding the related names allowed validation to pass and syncdb to function correctly.