Skip to content

Commit e630f3f

Browse files
committed
Remove useless / outdated comments
1 parent fa7070d commit e630f3f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/dirtyfields/dirtyfields.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ def _as_dict_m2m(self):
7777
return {}
7878

7979
def get_dirty_fields(self, check_relationship=False, check_m2m=None, verbose=False):
80-
# check_relationship indicates whether we want to check for foreign keys
81-
# and one-to-one fields or ignore them
82-
8380
if not self.pk:
8481
# If the object has not yet been saved in the database, all fields are considered dirty
8582
# for consistency (see https://github.com/romgar/django-dirtyfields/issues/65 for more details)
@@ -103,8 +100,6 @@ def get_dirty_fields(self, check_relationship=False, check_m2m=None, verbose=Fal
103100
return modified_fields
104101

105102
def is_dirty(self, check_relationship=False, check_m2m=None):
106-
# in order to be dirty we need to have been saved at least once, so we
107-
# check for a primary key and we need our dirty fields to not be empty
108103
return {} != self.get_dirty_fields(check_relationship=check_relationship,
109104
check_m2m=check_m2m)
110105

0 commit comments

Comments
 (0)