Squashed commit of the following:
commit75e46b8023
Author: smilerz <smilerz@gmail.com> Date: Wed Aug 25 21:27:31 2021 -0500 fix #883 commit2a1e1953ee
Author: smilerz <smilerz@gmail.com> Date: Wed Aug 25 21:08:35 2021 -0500 consolidated recently viewed into FTS queryset commitaa2d0eafb1
Author: smilerz <smilerz@gmail.com> Date: Wed Aug 25 16:43:52 2021 -0500 fixed cookie reactivity commitb74fdb3825
Author: smilerz <smilerz@gmail.com> Date: Wed Aug 25 16:37:43 2021 -0500 exact match appears first on keyword/food/unit searches commitb00c189fd6
Author: smilerz <smilerz@gmail.com> Date: Wed Aug 25 16:36:14 2021 -0500 add pagination reset on search query change
This commit is contained in:
@ -749,8 +749,7 @@ class CookLog(ExportModelOperationsMixin('cook_log'), models.Model, PermissionMo
|
||||
return self.recipe.name
|
||||
|
||||
class Meta():
|
||||
# TODO add created_by
|
||||
indexes = (Index(fields=['id', 'recipe', '-created_at', 'rating']),)
|
||||
indexes = (Index(fields=['id', 'recipe', '-created_at', 'rating', 'created_by']),)
|
||||
|
||||
|
||||
class ViewLog(ExportModelOperationsMixin('view_log'), models.Model, PermissionModelMixin):
|
||||
@ -765,8 +764,7 @@ class ViewLog(ExportModelOperationsMixin('view_log'), models.Model, PermissionMo
|
||||
return self.recipe.name
|
||||
|
||||
class Meta():
|
||||
# TODO add created_by
|
||||
indexes = (Index(fields=['recipe', '-created_at']),)
|
||||
indexes = (Index(fields=['recipe', '-created_at', 'created_by']),)
|
||||
|
||||
|
||||
class ImportLog(models.Model, PermissionModelMixin):
|
||||
|
Reference in New Issue
Block a user