here's what i'm trying
from django.contrib.auth import authenticate, login, logout
#import django user modules
from django.contrib.auth.models import User
def ShowMainMenu (request):
fullname=User.first_name + ' ' + User.last_name
return render_to_response('scanning/menu.html',
{'fullname':fullname}, context_instance=RequestContext(request))
I'm getting this err:
type object 'User' has no attribute 'first_name'
On Feb 4, 12:15 am, arlolra <[email protected]> wrote:
> user.get_full_name should
> workhttps://github.com/django/django/blob/master/django/contrib/auth/mode...
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.