prune old stuff
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Wed, 2 Sep 2009 11:22:36 +0000 (11:22 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Wed, 2 Sep 2009 11:22:36 +0000 (11:22 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@555 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/base.py

index a0ade49ea87d631cac2eb089685b48d65ca9b6c9..9a132d8199ff825daf902656a7a565e19b4749ed 100644 (file)
@@ -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):