Temp fix for cache bug
This commit is contained in:
parent
08ede3f797
commit
c00db58cb1
1 changed files with 4 additions and 1 deletions
|
@ -274,7 +274,10 @@ class Profile(models.Model):
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def username(self):
|
def username(self):
|
||||||
return self._cached_info["username"]
|
try:
|
||||||
|
return self._cached_info["username"]
|
||||||
|
except KeyError:
|
||||||
|
_get_basic_info.dirty(self.id)
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def first_name(self):
|
def first_name(self):
|
||||||
|
|
Loading…
Reference in a new issue