Add type check for cache
This commit is contained in:
parent
f1ba0e79c1
commit
0ea822f7a0
10 changed files with 35 additions and 13 deletions
|
@ -581,7 +581,7 @@ def on_user_save(sender, instance, **kwargs):
|
|||
pass
|
||||
|
||||
|
||||
@cache_wrapper(prefix="Pgbi3")
|
||||
@cache_wrapper(prefix="Pgbi3", expected_type=dict)
|
||||
def _get_basic_info(profile_id):
|
||||
profile = (
|
||||
Profile.objects.select_related("user")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue