dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 91 forks source link

v0.3.4 lacks custom user model support? #101

Closed dgmdan closed 10 years ago

dgmdan commented 10 years ago

I installed the latest django-moderation through pip and followed config instructions but I get this on syncdb:

$ ./manage.py syncdb
CommandError: One or more models did not validate:
moderation.moderatedobject: 'moderated_by' defines a relation with the model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.
moderation.moderatedobject: 'changed_by' defines a relation with the model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.

I was confused by this after seeing commit f8f0749b423f57e0158bcef77b1921032aceee44, implying that it should work with a custom user model.

Uninstalling the pip version and reinstalling from source solved the issue. I just wanted to point this out, so that the version can be bumped and future users won't run into this.

dominno commented 10 years ago

Should be ok now.