better integration of notes, templates clean up
This commit is contained in:
9
notes/managers.py
Normal file
9
notes/managers.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.db.models import Manager
|
||||
|
||||
class NoteManager(Manager):
|
||||
|
||||
def by_date(self):
|
||||
return self.get_queryset().order_by('created_date')
|
||||
|
||||
def by_time(self):
|
||||
return self.get_queryset().order_by('created_time')
|
||||
Reference in New Issue
Block a user