A validated IBAN field for Django models
Project description
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-iban-0.2.1.tar.gz.
File metadata
- Download URL: django-iban-0.2.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9150958dd225b525ee4ee96c9a7f99c85b734853081c48abf1801368fab21b4
|
|
| MD5 |
414b18a08e53a4264b77b61edabc78f6
|
|
| BLAKE2b-256 |
cb40a5e815a598bfb47faec7d93b3f73d577948b1462b25db81f750f8d81c209
|