Removed deprecation warning #55

This commit is contained in:
Ross Lawley 2012-11-07 15:15:04 +00:00
parent e7c0da38c2
commit 4b45c0cd14

View File

@ -54,8 +54,4 @@ def queryset_manager(func):
function should return a :class:`~mongoengine.queryset.QuerySet`, probably function should return a :class:`~mongoengine.queryset.QuerySet`, probably
the same one that was passed in, but modified in some way. the same one that was passed in, but modified in some way.
""" """
if func.func_code.co_argcount == 1:
import warnings
msg = 'Methods decorated with queryset_manager should take 2 arguments'
warnings.warn(msg, DeprecationWarning)
return QuerySetManager(func) return QuerySetManager(func)