diff options
author | luxagraf <sng@luxagraf.net> | 2019-01-05 09:50:21 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-01-05 09:50:21 -0600 |
commit | d5f430d3e1e2b274d8d8f744251e8b6b4b72ebd9 (patch) | |
tree | 094404cdf4eaba53b1e225b54212679f6f032afd /apps/accounts/models.py | |
parent | 23b4b185e3f3f8b9f17eebc49110cb4696acdb39 (diff) |
changed to custom modal, added saving animation for note editing.
Diffstat (limited to 'apps/accounts/models.py')
-rw-r--r-- | apps/accounts/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/accounts/models.py b/apps/accounts/models.py index d000e3e..1b62ffd 100644 --- a/apps/accounts/models.py +++ b/apps/accounts/models.py @@ -26,4 +26,4 @@ class UserProfile(models.Model): @cached_property def get_notebook_list(self): - return Notebook.objects.filter(owner=self.user).select_related()[:8] + return Notebook.objects.filter(owner=self.user).select_related().annotate(note_count=models.Count('note'))[:8] |