Kaydet (Commit) f58efd07 authored tarafından Simon Charette's avatar Simon Charette Kaydeden (comit) Claude Paroz

Fixed #19576 -- Use `six.with_metaclass` uniformously accross code base.

üst 55da775c
......@@ -311,7 +311,7 @@ class ModelState(object):
self.adding = True
class Model(six.with_metaclass(ModelBase, object)):
class Model(six.with_metaclass(ModelBase)):
_deferred = False
def __init__(self, *args, **kwargs):
......
......@@ -990,7 +990,7 @@ class InstanceCheckMeta(type):
def __instancecheck__(self, instance):
return instance.query.is_empty()
class EmptyQuerySet(six.with_metaclass(InstanceCheckMeta), object):
class EmptyQuerySet(six.with_metaclass(InstanceCheckMeta)):
"""
Marker class usable for checking if a queryset is empty by .none():
isinstance(qs.none(), EmptyQuerySet) -> True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment