django-iban


Namedjango-iban JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/benkonrath/django-iban
SummaryA validated IBAN field for Django models
upload_time2014-12-25 15:52:40
maintainer
docs_urlNone
authorBen Konrath
requires_pythonNone
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            django-iban
===========

.. WARNING::
   **Obsolete package** You should not use this package any longer. The IBAN and BIC fields are now
   available in version 1.1 and later of the https://pypi.python.org/pypi/django-localflavor package.
   Bug reports and feature requests should be filed against https://github.com/django/django-localflavor.

   The IBAN and BIC fields in django-localflavor have bugs fixes that are not included in this package.
   Please migrate existing code to the IBAN and BIC fields in the `django-localflavor generic package`_.

**Migrating Model Fields to django-localflavor**

Add `localflavor` to your `INSTALLED_APPS` and then change the model fields ``IBANField``
and``SWIFTBICField`` to the versions from django-localflavor.

For example, the django-iban model fields should be changed from this::

    from django_iban.fields import IBANField, SWIFTBICField

    class CustomerModel(models.Model):
        iban = IBANField()
        bic = SWIFTBICField()

to the django-localflavor model field versions::

    from localflavor.generic.models import IBANField, BICField

    class CustomerModel(models.Model):
        iban = IBANField()
        bic = BICField()

For Django < 1.7, you will need to use South to migrate your database. Use `schemamigration`
to create a migration and then run `migrate` alter your database. For example::

    % ./manage.py schemamigration myapp --auto convert_django_iban_to_django_localflavor
     ~ Changed field iban on myapp.CustomerModel
     ~ Changed field bic on myapp.CustomerModel
    Created 0002_convert_django_iban_to_django_localflavor.py. You can now apply this migration with: ./manage.py migrate myapp

    % ./manage.py migrate myapp
    Running migrations for myapp:
     - Migrating forwards to 0002_convert_django_iban_to_django_localflavor.
     > myapp:0002_convert_django_iban_to_django_localflavor
     - Loading initial data for myapp.
    Installed 0 object(s) from 0 fixture(s)

For Django >= 1.7, run `makemigrations` to create a migration and then run `migrate` alter
your database. For example::

    % ./manage.py makemigrations myapp
    Migrations for 'myapp':
      0002_auto_20150210_1004.py:
        - Alter field bic on customermodel
        - Alter field iban on customermodel

    % ./manage.py migrate myapp
    Operations to perform:
      Apply all migrations: myapp
    Running migrations:
      Applying myapp.0002_auto_20150210_1004... OK

**Migrating Form Fields to django-localflavor**

Change the form fields ``IBANFormField`` and ``SWIFTBICFormField`` to the versions from django-localflavor.

For example, the django-iban form fields should be changed from this::

    from django_iban.forms import IBANFormField, SWIFTBICFormField

    class CustomerForm(forms.Form):
        iban = IBANFormField()
        swift_bic = SWIFTBICFormField()

to the django-localflavor form field versions::

    from localflavor.generic.forms import IBANFormField, BICFormField

    class CustomerForm(forms.Form):
        iban = IBANFormField()
        bic = BICFormField()

.. _django-localflavor generic package: https://django-localflavor.readthedocs.org/en/latest/generic/
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/benkonrath/django-iban",
    "name": "django-iban",
    "maintainer": "",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "",
    "keywords": "",
    "author": "Ben Konrath",
    "author_email": "ben@bagu.org",
    "download_url": "https://files.pythonhosted.org/packages/cd/ab/3722c41fc79ca78b9f3f9addf43bcd876f7e8e4fdbf0ae1392b528e42d6f/django-iban-0.3.1.tar.gz",
    "platform": "UNKNOWN",
    "description": "django-iban\r\n===========\r\n\r\n.. WARNING::\r\n   **Obsolete package** You should not use this package any longer. The IBAN and BIC fields are now\r\n   available in version 1.1 and later of the https://pypi.python.org/pypi/django-localflavor package.\r\n   Bug reports and feature requests should be filed against https://github.com/django/django-localflavor.\r\n\r\n   The IBAN and BIC fields in django-localflavor have bugs fixes that are not included in this package.\r\n   Please migrate existing code to the IBAN and BIC fields in the `django-localflavor generic package`_.\r\n\r\n**Migrating Model Fields to django-localflavor**\r\n\r\nAdd `localflavor` to your `INSTALLED_APPS` and then change the model fields ``IBANField``\r\nand``SWIFTBICField`` to the versions from django-localflavor.\r\n\r\nFor example, the django-iban model fields should be changed from this::\r\n\r\n    from django_iban.fields import IBANField, SWIFTBICField\r\n\r\n    class CustomerModel(models.Model):\r\n        iban = IBANField()\r\n        bic = SWIFTBICField()\r\n\r\nto the django-localflavor model field versions::\r\n\r\n    from localflavor.generic.models import IBANField, BICField\r\n\r\n    class CustomerModel(models.Model):\r\n        iban = IBANField()\r\n        bic = BICField()\r\n\r\nFor Django < 1.7, you will need to use South to migrate your database. Use `schemamigration`\r\nto create a migration and then run `migrate` alter your database. For example::\r\n\r\n    % ./manage.py schemamigration myapp --auto convert_django_iban_to_django_localflavor\r\n     ~ Changed field iban on myapp.CustomerModel\r\n     ~ Changed field bic on myapp.CustomerModel\r\n    Created 0002_convert_django_iban_to_django_localflavor.py. You can now apply this migration with: ./manage.py migrate myapp\r\n\r\n    % ./manage.py migrate myapp\r\n    Running migrations for myapp:\r\n     - Migrating forwards to 0002_convert_django_iban_to_django_localflavor.\r\n     > myapp:0002_convert_django_iban_to_django_localflavor\r\n     - Loading initial data for myapp.\r\n    Installed 0 object(s) from 0 fixture(s)\r\n\r\nFor Django >= 1.7, run `makemigrations` to create a migration and then run `migrate` alter\r\nyour database. For example::\r\n\r\n    % ./manage.py makemigrations myapp\r\n    Migrations for 'myapp':\r\n      0002_auto_20150210_1004.py:\r\n        - Alter field bic on customermodel\r\n        - Alter field iban on customermodel\r\n\r\n    % ./manage.py migrate myapp\r\n    Operations to perform:\r\n      Apply all migrations: myapp\r\n    Running migrations:\r\n      Applying myapp.0002_auto_20150210_1004... OK\r\n\r\n**Migrating Form Fields to django-localflavor**\r\n\r\nChange the form fields ``IBANFormField`` and ``SWIFTBICFormField`` to the versions from django-localflavor.\r\n\r\nFor example, the django-iban form fields should be changed from this::\r\n\r\n    from django_iban.forms import IBANFormField, SWIFTBICFormField\r\n\r\n    class CustomerForm(forms.Form):\r\n        iban = IBANFormField()\r\n        swift_bic = SWIFTBICFormField()\r\n\r\nto the django-localflavor form field versions::\r\n\r\n    from localflavor.generic.forms import IBANFormField, BICFormField\r\n\r\n    class CustomerForm(forms.Form):\r\n        iban = IBANFormField()\r\n        bic = BICFormField()\r\n\r\n.. _django-localflavor generic package: https://django-localflavor.readthedocs.org/en/latest/generic/",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "A validated IBAN field for Django models",
    "version": "0.3.1",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/benkonrath/django-iban"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cdab3722c41fc79ca78b9f3f9addf43bcd876f7e8e4fdbf0ae1392b528e42d6f",
                "md5": "0aad4236e47165c7066b60381b68b615",
                "sha256": "26a2d623ccf876f70f273bd2a24ddf72e601045d89d759d4062dcd0bd0a8a874"
            },
            "downloads": -1,
            "filename": "django-iban-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0aad4236e47165c7066b60381b68b615",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14434,
            "upload_time": "2014-12-25T15:52:40",
            "upload_time_iso_8601": "2014-12-25T15:52:40.112171Z",
            "url": "https://files.pythonhosted.org/packages/cd/ab/3722c41fc79ca78b9f3f9addf43bcd876f7e8e4fdbf0ae1392b528e42d6f/django-iban-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2014-12-25 15:52:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "benkonrath",
    "github_project": "django-iban",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "django-iban"
}
        
Elapsed time: 0.11900s