Skip to main content

A validated IBAN field for Django models

Project description

https://secure.travis-ci.org/benkonrath/django-iban.png?branch=master https://coveralls.io/repos/benkonrath/django-iban/badge.png?branch=master

Validated Django model fields for International Bank Account Numbers (IBAN - ISO 13616-1:2007) and SWIFT-BIC (ISO 9362:2009).

Author: Ben Konrath

License: 3-clause BSD

Features:

  • Support for all currently active IBAN countries / numbers.
  • Validates IBAN using the official validation algorithm.
  • Date conditional support for Brazilian IBANs (active 1 July, 2013) and Guatemalan IBANs (active 1 July, 2014)
  • Basic validation for SWIFT-BIC.

Usage:

Define a field as IBANField and/or SWIFTBICField in your models.py:

from django_iban.fields import IBANField, SWIFTBICField

class Customer(Model):
    iban = IBANField()
    swift_bic = SWIFTBICField()

Development:

Ideas for new features include:

  • SWIFT-BIC validation using referenced IBANField (SEPA requires both IBAN and SWIFT-BIC to be correct).
  • Translation of validation error messages using Transifex.

Pull requests happily accepted.

Project details


Release history Release notifications

History Node

0.3.1

History Node

0.3.0

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

This version
History Node

0.2.1

History Node

0.2.0

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-iban-0.2.1.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None Jun 10, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page