Skip to content

Commit

Permalink
Use systems check framework rather than
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Sep 14, 2017
1 parent 5e296df commit 83a93d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions localflavor/nl/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import unicode_literals

import warnings

from django.db import models
from django.utils.translation import ugettext_lazy as _

Expand Down Expand Up @@ -132,8 +130,10 @@ class NLBankAccountNumberField(models.CharField):
"""

def __init__(self, *args, **kwargs):
warnings.warn("NLBankAccountNumberField is deprecated. Use `localflavor.generic.models.IBANField` "
"with included_countries=('nl') option instead.", RemovedInLocalflavor20Warning)
self.system_check_deprecated_details = {
'msg': self.__class__.__name__ + ' is deprecated.',
'hint': "Use `localflavor.generic.models.IBANField` with included_countries=('nl') option instead."
}

kwargs.setdefault('max_length', 10)
super(NLBankAccountNumberField, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 83a93d0

Please sign in to comment.