Closed AJLeonardi closed 11 years ago
Users are correctly updated as baristas now and it should function the same. BaristaList has been updated.
Hey Chris, hoping you can give some clarity to the code in the baristaList. When it sets userdetails = user.get_profile(), where is 'user' defined? if it's the current user, wouldn't that just return the profile page for the current user?
Hey chris, I updated this a bit in my branch. let me know if you want me to submit a pull request.
Ah, good point. I must've left the request.session['user'] line out. Strange that that didn't cause any errors. I believe if you reference first_name through the UserProfile it should return the User attribute.
figured out the syntax in side the filter -- instead of user.first_name -- you use user__first_name. Not sure why.
Took us bout 2 hours huh?
need to amend way we get list of baristas based on search string.
not sure how this will work with the django user stuff now.