jazzband/django-model-utils

FieldTracker for AbstractModel children is still not stable

Open

#382 opened on Aug 5, 2019

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Python (370 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (2,762 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Problem

I have found that AbstractModelTrackerTests is not quite correct. Since it inherited from FieldTrackerTestCase that just implements some extra assertions, there are no actual tests for this case.

Solution

I have fixed AbstractModelTrackerTests and it seems that some tests are failed for the case with models inherited from some AbstractModel with fields defined (like AbstractUser and its children)

#381 - pull request

Contributor guide