I suggest you simply make the fields hidden db.auth_user.first_name.readable = db.auth_user.first_name.writable = False db.auth_user.last_name.readable = db.auth_user.last_name.writable = False
On Jan 29, 6:36 pm, HittingSmoke <hittingsm...@gmail.com> wrote: > I'd like to use auth with only a username instead of first and last > name. I defined my own tables without a first and last name but it > still causes issues throughout the app. > > For instance, when I try to use appadmin to add a user to a new auth > group I get an error (<type 'exceptions.KeyError'> 'first_name') if > there is no first and last name fields in the database. If I create > them but make them unreadable and unwritable the page will load but > all of the entries in the User ID dropdown say "None None (user ID > #)". > > The auth Welcome bar is also fixed to the first name field and if not > used it will says Welcome, None. > > This seems like quite a huge oversight for such a robust auth system. > Usernames are far more common for user management than first and last > names and many people just plain refuse to give their real names to > random web sites that require authentication. > > Is there a modded version of auth perhaps that can be used as a > plugin? Excuse me if that sounds stupid, I'm just started out with > this and could very well just be going about this all wrong.