Custom Query (26786 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1 - 3 of 26786)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#9598 wontfix ` nobody to.roma.from.djbug@…
Description

contrib/auth/models.py:

class UserManager(models.Manager):
    def create_user(self, username, email, password=None):
        "Creates and saves a User with the given username, e-mail and password."
        now = datetime.datetime.now()
        user = self.model(None, username, '', '', email.strip().lower(), 'placeholder', False, True, False, now, now)
        if password:
            user.set_password(password)
        else:
            user.set_unusable_password()
        user.save()
        return user

This should support keyword arguments for first_name, last_name etc. That would make user-creating code cleaner and would avoid unnecessary database operations. The change is so obvious I’m not including a patch.

Are there any reasons not to add such a feature?

#23029 invalid :( nobody anonymous
Description

It worked yesterday dunno why it's not working now

#1247 fixed 0.90 model examples 404 Jacob matt
Description

On the 0.90 documentation page the link to model examples gives a 404.

1 2 3 4 5 6 7 8 9 10 11
Note: See TracQuery for help on using queries.
Back to Top