Metadata-Version: 2.0
Name: edc-base
Version: 0.1.2
Summary: Base models, forms and admin for botswana-harvard/edc modules.
Home-page: http://github.com/botswana-harvard/edc-base
Author: Erik van Widenfelt
Author-email: ew2789@gmail.com
License: GPL licence, see LICENCE
Keywords: django base models fields forms admin
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: django-crypto-fields (>=0.1)
Requires-Dist: django-revision (>=0.1)
Requires-Dist: edc-constants (>=0.1)

[![Build Status](https://travis-ci.org/botswana-harvard/edc-base.svg?branch=develop)](https://travis-ci.org/botswana-harvard/edc-base)
[![PyPI version](https://badge.fury.io/py/edc-base.svg)](http://badge.fury.io/py/edc-base)
# edc-base

Base model, manager, field, validator, form and admin classes for Edc. 


Installation
------------

	pip install edc-base

In the __settings__ file add:

	STUDY_OPEN_DATETIME = datetime.today()
	STUDY_CLOSE_DATETIME = datetime.today()

Optional __settings__ attributes:

	# phone number validtors
	# the default is '^[0-9+\(\)#\.\s\/ext-]+$'
	TELEPHONE_REGEX = '^[2-8]{1}[0-9]{6}$'
	CELLPHONE_REGEX = '^[7]{1}[12345678]{1}[0-9]{6}$',


