diff options
Diffstat (limited to 'app/notes/build.py')
-rw-r--r-- | app/notes/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/notes/build.py b/app/notes/build.py index 4923baf..96c4812 100644 --- a/app/notes/build.py +++ b/app/notes/build.py @@ -1,4 +1,5 @@ from builder.base import * +from django.apps import apps class BuildNotes(Build): @@ -12,7 +13,7 @@ class BuildNotes(Build): return self.get_model().objects.all().order_by('-date_created') def get_model(self): - return get_model('notes', 'note') + return apps.get_model('notes', 'note') def build_detail_pages(self): ''' |