Commit 4845b2e9 authored by jocelyn's avatar jocelyn
Browse files

Add a dedicated NetManager()

Actually I don't know why, but I find this uncommited on test-coin.illyse.org
VM…
parent 5c77962e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings

from netfields import InetAddressField, NetManager

import ldapdb.models
from ldapdb.models.fields import CharField, ListField

@@ -67,6 +69,7 @@ class DSLConfiguration(CoinLdapSyncMixin, Configuration):
    password = models.CharField(max_length=256, blank=True,
                                verbose_name=_("password"),
                                help_text=_("Will be stored in cleartext!  Automatically generated if empty"))
    objects = NetManager()

    def full_login(self):
        """Login with realm"""