Every thing was working fine with Django1.6, but when upgraded to Django1.7 it showed "App registry not ready", so I changed get_user_model() to settings.AUTH_USER_MODEL in my models.
class MyModel(models.Model, SomeMixin):
content = models.TextField()
posted_by = models.ForeignKey(settings.AUTH_USER_MODEL,
related_name='name1')
note = models.ForeignKey(SomeModel, related_name='name2')
created = models.DateTimeField(auto_now_add=True)
Now, on starting the server I get following error messages.
ERRORS: apps.MyModel.posted_by: (fields.E304) Reverse accessor for 'model_field' clashes with reverse accessor for 'model_field'. HINT: Add or change a related_name argument to the definition for 'model_field' or 'model_field'.
Changing related is not the best way I can go for, as changing related name involves change to a lot of code. What am I missing here? What should be I looking for? Any help would be highly appreciated.