moved get_list_context to module

This commit is contained in:
Anand Doshi
2015-03-13 12:46:32 +05:30
parent 2e5be6f994
commit 9d9e31f4e8
5 changed files with 21 additions and 25 deletions

View File

@@ -48,12 +48,11 @@ class Issue(Document):
# if no date, it should be set as None and not a blank string "", as per mysql strict config
self.resolution_date = None
@staticmethod
def get_list_context(context=None):
return {
"title": _("My Issues"),
"get_list": get_issue_list
}
def get_list_context(context=None):
return {
"title": _("My Issues"),
"get_list": get_issue_list
}
def get_issue_list(doctype, txt, filters, limit_start, limit_page_length=20):
from frappe.templates.pages.list import get_list