Added tracker field to the Child model definition

This commit is contained in:
georgemillard 2019-08-20 16:01:15 +01:00 committed by GitHub
parent 3c46995291
commit 39bd66d120
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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