Welcome to this ongoing series of bug fixes!
In this one, there is a bug related to the registration process in the social network built in the Django Tutorials series. When the registration form is submitted, we see a Django traceback:
type object ‘UserProfile’ has no attribute ‘objects’
To fix it, we just need to add the default manager again as an attribute on the UserProfile class so that we can refer to it again without getting rid of the
london custom model manager.
objects = models.Manager()
And now there’s a different error, great!