mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +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.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
|
||||
>>> all(a.tracker.has_changed(field) for field in ('title', 'description')):
|
||||
>>> all(a.tracker.has_changed(field) for field in ('title', 'description'))
|
||||
False
|
||||
|
||||
The ``has_changed`` method relies on ``previous`` to determine whether a
|
||||
|
|
|
|||
Loading…
Reference in a new issue