Provides a model field to manage and validate isbn numbers
Project description
# django-isbn-field
Provides django model field to store and validate ISBN numbers.
## Requirements
It has been tested on
* Python >= 3
* Django 1.7, 1.0, 1.9, 1.10
## Installation
Using Pypi
```bash
$ pip install django-isbn-field
```
## Usage
Add isbn_field to INSTALLED_APPS
```python
# settings.py
INSTALLED_APPS = (
...
'isbn_field',
)
```
Use the field in your model
```python
from django.db import models
from isbn_field import ISBNField
class Book(models.Model):
isbn = ISBNField()
...
```
It will raise ValidationError when the number provided is invalid
Provides django model field to store and validate ISBN numbers.
## Requirements
It has been tested on
* Python >= 3
* Django 1.7, 1.0, 1.9, 1.10
## Installation
Using Pypi
```bash
$ pip install django-isbn-field
```
## Usage
Add isbn_field to INSTALLED_APPS
```python
# settings.py
INSTALLED_APPS = (
...
'isbn_field',
)
```
Use the field in your model
```python
from django.db import models
from isbn_field import ISBNField
class Book(models.Model):
isbn = ISBNField()
...
```
It will raise ValidationError when the number provided is invalid
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-isbn-field-0.3.tar.gz
(5.0 kB
view hashes)