which django version do you use?
the current 'head' version shows in django/contrib/auth/models.py:
---8<---
200 class User(models.Model):
201 """
202 Users within the Django authentication system are represented by this
model.
203
204 Username and password are required. Other fie
On Fri, Feb 4, 2011 at 10:23 AM, Ivo Brodien wrote:
>
>> Don't forget the login_required decorator, because if an anonymous
>> user try to get that page he will get an exception (I think, didn't
>> try that)
>
> No, they will be redirected to login and after login they come back to the
> original
> Don't forget the login_required decorator, because if an anonymous
> user try to get that page he will get an exception (I think, didn't
> try that)
No, they will be redirected to login and after login they come back to the
original page, if the form considers the ’next’ field. How nice is tha
On Fri, Feb 4, 2011 at 6:24 AM, Bobby Roberts wrote:
> 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.l
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',
{'
user.get_full_name should work
https://github.com/django/django/blob/master/django/contrib/auth/models.py#L245
--
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 fro
is there a template tag to show the user's full name on a template?
--
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+u
7 matches
Mail list logo