Skip to content

Commit 42d75e7

Browse files
authored
Merge pull request #1 from arthur-verta/arthur-verta-patch-1
Update utils.py
2 parents 067746c + e0bb5a5 commit 42d75e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_pandas/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def replace_pk(model):
4444
base_cache_key = get_base_cache_key(model)
4545

4646
def get_cache_key_from_pk(pk):
47-
return None if pk is None else base_cache_key % str(pk)
47+
return None if pk is None else base_cache_key % str(int(pk))
4848

4949
def inner(pk_series):
5050
pk_series = pk_series.astype(object).where(pk_series.notnull(), None)

0 commit comments

Comments
 (0)