mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed some unnecessary __exact operators in filters.
This commit is contained in:
@@ -101,7 +101,7 @@ You can also change a password programmatically, using
|
||||
.. code-block:: python
|
||||
|
||||
>>> from django.contrib.auth.models import User
|
||||
>>> u = User.objects.get(username__exact='john')
|
||||
>>> u = User.objects.get(username='john')
|
||||
>>> u.set_password('new password')
|
||||
>>> u.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user