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 <arlo...@gmail.com> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to