X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ldapdb%2Fmodels%2Fbase.py;h=981fea6d994565051d838730414dc34ecfe1d71b;hb=23a36d706cedeed4d02d0f97b46669403ce5b943;hp=a0ade49ea87d631cac2eb089685b48d65ca9b6c9;hpb=bb0d161101fe9f6fde920db23482b1e1b8e7b904;p=matthijs%2Fupstream%2Fdjango-ldapdb.git diff --git a/ldapdb/models/base.py b/ldapdb/models/base.py index a0ade49..981fea6 100644 --- a/ldapdb/models/base.py +++ b/ldapdb/models/base.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # django-ldapdb -# Copyright (C) 2009 Bolloré telecom +# Copyright (C) 2009-2010 Bolloré telecom # See AUTHORS file for a full list of contributors. # # This program is free software: you can redistribute it and/or modify @@ -18,8 +18,6 @@ # along with this program. If not, see . # -# -*- coding: utf-8 -*- - import ldap import logging @@ -34,8 +32,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 +42,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):