From: jlaine Date: Wed, 2 Sep 2009 11:22:36 +0000 (+0000) Subject: prune old stuff X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=fddc8995da72d56e08a0c25e170cdaec065d523a;p=matthijs%2Fupstream%2Fdjango-ldapdb.git prune old stuff git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@555 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/models/base.py b/ldapdb/models/base.py index a0ade49..9a132d8 100644 --- a/ldapdb/models/base.py +++ b/ldapdb/models/base.py @@ -34,8 +34,6 @@ class ModelBase(django.db.models.base.ModelBase): Metaclass for all LDAP models. """ def __new__(cls, name, bases, attrs): - attr_meta = attrs.pop('Ldap', None) - super_new = super(ModelBase, cls).__new__ new_class = super_new(cls, name, bases, attrs) @@ -46,10 +44,6 @@ class ModelBase(django.db.models.base.ModelBase): new_class.objects.get_query_set = get_query_set new_class._default_manager.get_query_set = get_query_set - if attr_meta: - new_class._meta.dn = attr_meta.dn - new_class._meta.object_classes = attr_meta.object_classes - return new_class class Model(django.db.models.base.Model):