mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Added tracker field to the Child model definition
This commit is contained in:
parent
3c46995291
commit
39bd66d120
1 changed files with 1 additions and 0 deletions
|
|
@ -228,6 +228,7 @@ It should be noted that a generic FieldTracker tracks Foreign Keys by db_column
|
|||
class Child(models.Model):
|
||||
name = models.CharField(max_length=64)
|
||||
parent = models.ForeignKey(Parent)
|
||||
tracker = FieldTracker()
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue