{{{
user = self.model(username=username, email=email,
is_staff=is_staff, is_active=True,
is_superuser=is_superuser,
date_joined=now, **extra_fields)
}}}
date_joined is being specified but in the model declaration ( line 406 )
date_joined is set to now by default.
{{{406: date_joined = models.DateTimeField(_('date joined'),
default=timezone.now }}}
I've removed the date_joined kwarg and all tests were ok. I've pushed what
i think is the solution here:
[https://github.com/delgiudices/django/blob/test_user/django/contrib/auth/models.py#L178]
--
Ticket URL: <https://code.djangoproject.com/ticket/24737>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_docs: => 0
* owner: nobody => delgiudices
* needs_tests: => 0
* needs_better_patch: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24737#comment:1>
* type: Uncategorized => Cleanup/optimization
* version: 1.8 => master
* component: Database layer (models, ORM) => contrib.auth
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24737#comment:2>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24737#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"db0a0c4b8ae490d0596f2c210d3edba3d700374a" db0a0c4]:
{{{
#!CommitTicketReference repository=""
revision="db0a0c4b8ae490d0596f2c210d3edba3d700374a"
Fixed #24737 -- Removed unnecesary kwargs in UserManager._create_user()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24737#comment:4>