Metadata-Version: 1.1
Name: django-input-mask
Version: 1.3.6
Summary: JavaScript input masks for Django
Home-page: http://github.com/caioariede/django-input-mask
Author: Caio Ariede
Author-email: caio.ariede@gmail.com
License: MIT
Description: **Django Input Mask**
        
        A collection of easy-to-extend-widgets for applying masks to input elements.
        
        MIT licensed
        
        **Compatibility**
        
        * Django 1.3, 1.4 and 1.5
        * Python 2.6, 2.7 and 3
        
        **Requirements**
        
        * jQuery 1.8 or higher
        
        We do not include jQuery in this package, you must add it by your hands.
        
        **Note:**
        *jQuery 1.9 support will be granted through the* `jQuery Migrate Plugin <https://github.com/jquery/jquery-migrate>`_.
        
        *Just take a look on* `example_project/templates/form.html <example_project/example_project/templates/form.html>`_ *file for an example.*
        
        **Installation**
        
          .. code:: bash
        
           pip install django-input-mask
        
        Or install directly from master branch:
        
          .. code:: bash
        
           pip install git+http://github.com/caioariede/django-input-mask.git#egg=input_mask
        
        Or manually place it on your :code:`PYTHON_PATH`.
        
        **Configuration**
        
        Add :code:`input_mask` to the :code:`INSTALLED_APPS` setting.
        
        *This is needed so that Django can handle the app's static files*
        
        **Usage**
        
          .. code:: python
        
           from django import forms
           from django.contrib.localflavor.br.forms import BRPhoneNumberField
        
           from input_mask.contrib.localflavor.br.widgets import BRPhoneNumberInput
        
           class YourForm(forms.ModelForm):
               phone = BRPhoneNumberField(widget=BRPhoneNumberInput)
        
        **Decimal masks**
        
          .. code:: python
        
           from input_mask.fields import DecimalField
        
           class MyForm(forms.ModelForm):
               my_decimal_field = DecimalField(max_digits=10, decimal_places=2)
        
        * :code:`input_mask.fields.DecimalField` will automatically handle separators.
        * :code:`input_mask.contrib.localflavor.*.fields.*DecimalField` will use local-based separators.
        
        **Creating your own masks**
        
          .. code:: python
        
           from input_mask.widgets import InputMask
        
           class MyCustomInput(InputMask):
               mask = {'mask': '999-111'}
        
        For more rules, take a look at `meioMask documentation <http://www.meiocodigo.com/projects/meiomask/>`_.
        
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: JavaScript
Classifier: Framework :: Django
Classifier: Topic :: Utilities
