From 40d15f4c079f09a2a8ea87a25e4a7958052ef40f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 30 Apr 2014 16:45:14 +0530 Subject: [PATCH] Revert: check if single doctype exists --- frappe/database.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/database.py b/frappe/database.py index d3fd430134..e85fca4703 100644 --- a/frappe/database.py +++ b/frappe/database.py @@ -328,8 +328,9 @@ class Database: return self.get_values_from_single(fields, filters, doctype, as_dict, debug, update) def get_values_from_single(self, fields, filters, doctype, as_dict=False, debug=False, update=None): - if not frappe.model.meta.is_single(doctype): - raise frappe.DoesNotExistError("DocType", doctype) + # TODO + # if not frappe.model.meta.is_single(doctype): + # raise frappe.DoesNotExistError("DocType", doctype) if fields=="*" or isinstance(filters, dict): # check if single doc matches with filters