diff --git a/README.md b/README.md index 0bad3b4..9307223 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,11 @@ This project uses Travis for continuous integration: [![Build Status](https://se ChangeLog --------- +### 0.2.3 + +* Added: Ability to specify `secret_key` as an argument to the field constructor (via [markkennedy](https://github.com/svetlyak40wt/django-fields/pull/40 "Issue #40")). +* Added: `EncryptedUSPhoneNumberField` and `EncryptedUSSocialSecurityNumberField` now try to import from the standalone django-localflavor before falling back to the version included in Django (this is necessary to support Django 1.6 and newer) (via [mjacksonw](https://github.com/svetlyak40wt/django-fields/pull/36 "Issue #33")). + ### 0.2.2 * Fixed: Django admin needs to be able to create blank instances of the fields in order to create a new model. This broke with `BaseEncryptedNumberField`. (via [defrex](https://github.com/svetlyak40wt/django-fields/pull/32 "Issue #32")) diff --git a/setup.py b/setup.py index 6ed6450..ba82a47 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ from setuptools import setup, find_packages + +version = '0.2.3' + setup( name = 'django-fields', - version = '0.2.2', + version = version, description = 'Django-fields is an application which includes different kinds of models fields.', keywords = 'django apps tools collection', license = 'New BSD License', diff --git a/src/django_fields/__init__.py b/src/django_fields/__init__.py index e69de29..6ef8591 100644 --- a/src/django_fields/__init__.py +++ b/src/django_fields/__init__.py @@ -0,0 +1,10 @@ +from pkg_resources import get_distribution, DistributionNotFound +import os.path + +try: + _dist = get_distribution('django-fields') +except DistributionNotFound: + __version__ = 'Please install this project with setup.py' +else: + __version__ = _dist.version +VERSION = __version__ # synonym \ No newline at end of file