1. David Jean Louis
  2. django-admin-tools

Pull requests

#25 Declined
Repository
izi
Branch
default

Fixed issue with email-based users

Author
  1. Richard Antecki
Reviewers
Description

Updated DashboardPreferences.unicode function to honor the User model's USERNAME_FIELD instead of using user.username. This avoids errors when using email-based users.

  • Learn about pull requests

Comments (2)

  1. David Jean Louis repo owner

    Venelin is right. I think we should just do:

        def __unicode__(self):
            return "%s dashboard preferences" % self.user
    

    That will call the unicode method of the user model.