[FIX] orm: iteration on `browse_null` object lasts forever

This commit is contained in:
Yuriy A. Apollov 2015-03-23 18:45:07 +03:00 committed by Raphael Collet
parent 152d9de6cf
commit 098c084eae
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@ class browse_null(object):
def __unicode__(self):
return u''
def __iter__(self):
raise NotImplementedError("Iteration is not allowed on browse_null")
#
# TODO: execute an object method on browse_record_list