#14644: UserManager has no method active()
----------------------------------------+-----------------------------------
 Reporter:  anonymous                   |       Owner:  nobody    
   Status:  new                         |   Milestone:            
Component:  Authentication              |     Version:  1.2       
 Keywords:  User UserManager is_active  |       Stage:  Unreviewed
Has_patch:  0                           |  
----------------------------------------+-----------------------------------
 The User model has an is_active field, but there is no easy way to get all
 users which are active, which is most of the time what we need.

 User.objects.active()  seems like a proper way to get all active users.

 It is shorter than

 User.objects.filter(is_active=True)

 which is more verbose and leads to more typing errors.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14644>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to