mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-05-17 14:21:08 +00:00
Removed colons
This commit is contained in:
parent
98416539a5
commit
8e818d9bfa
1 changed files with 2 additions and 2 deletions
|
|
@ -170,9 +170,9 @@ The ``has_changed`` method expects a single field. To check multiple fields:
|
||||||
|
|
||||||
>>> a = Post.objects.create(title='First Post', description='First Description')
|
>>> a = Post.objects.create(title='First Post', description='First Description')
|
||||||
>>> a.title = 'Welcome'
|
>>> a.title = 'Welcome'
|
||||||
>>> any(a.tracker.has_changed(field) for field in ('title', 'description')):
|
>>> any(a.tracker.has_changed(field) for field in ('title', 'description'))
|
||||||
True
|
True
|
||||||
>>> all(a.tracker.has_changed(field) for field in ('title', 'description')):
|
>>> all(a.tracker.has_changed(field) for field in ('title', 'description'))
|
||||||
False
|
False
|
||||||
|
|
||||||
The ``has_changed`` method relies on ``previous`` to determine whether a
|
The ``has_changed`` method relies on ``previous`` to determine whether a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue