Skip to content

Commit

Permalink
Use class name
Browse files Browse the repository at this point in the history
  • Loading branch information
lokhman authored and Suor committed May 2, 2020
1 parent b59406a commit 59daa06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cacheops/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def stamp_fields(model):
"""
Returns serialized description of model fields.
"""
stamp = str(sorted((f.name, f.attname, f.db_column, f.__class__) for f in model._meta.fields))
stamp = str(sorted(
(f.name, f.attname, f.db_column, f.__class__.__name__)
for f in model._meta.fields))
return md5hex(stamp)


Expand Down

0 comments on commit 59daa06

Please sign in to comment.