-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59ba12e
commit 6b1a783
Showing
9 changed files
with
60 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,7 @@ docs/_build/ | |
target/ | ||
|
||
# Mac OSX | ||
.DS_Store | ||
.DS_Store | ||
|
||
# Pyenv | ||
.python-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = (0, 1) | ||
VERSION = (0, 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models | ||
from django.contrib.auth.models import Group | ||
from django.utils.encoding import python_2_unicode_compatible | ||
|
||
@python_2_unicode_compatible | ||
class Feature(models.Model): | ||
"""The feature model. | ||
A feature is identified by a unique string and is associated to a group | ||
of users. | ||
""" | ||
key = models.CharField(u"Key", unique=True, max_length=128, | ||
help_text=u"A unique key for this feature.") | ||
key = models.CharField("Key", unique=True, max_length=128, | ||
help_text="A unique key for this feature.") | ||
group = models.ForeignKey(Group) | ||
start_date = models.DateTimeField(u"Start date") | ||
end_date = models.DateTimeField(u"End date") | ||
is_active = models.BooleanField(u"Activation", default=False) | ||
start_date = models.DateTimeField("Start date") | ||
end_date = models.DateTimeField("End date") | ||
is_active = models.BooleanField("Activation", default=False) | ||
|
||
def __unicode__(self): | ||
return self.key | ||
def __str__(self): | ||
return self.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
========= | ||
Changelog | ||
========= | ||
|
||
|
||
Version 0.2 | ||
=========== | ||
* Supports for Python 3 | ||
|
||
|
||
Version 0.1 | ||
=========== | ||
* First stable version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,24 @@ | ||
[tox] | ||
envlist = | ||
django_1.6.X, | ||
django_1.7.X, | ||
{py27,py32,py33,py34}-django{16,17}, | ||
coverage | ||
|
||
[testenv] | ||
usedevelop = True | ||
basepython = python2.7 | ||
deps = | ||
django16: Django>=1.6,<1.7 | ||
django17: Django>=1.7,<1.8 | ||
commands = | ||
django-admin.py test django_featurette | ||
setenv = | ||
DJANGO_SETTINGS_MODULE = settings | ||
PYTHONPATH = {toxinidir}/tests | ||
changedir = {toxinidir}/tests/ | ||
commands = | ||
pip install --editable .. | ||
django-admin.py test django_featurette | ||
|
||
[testenv:django_1.6.X] | ||
deps = Django>=1.6, <1.7 | ||
|
||
[testenv:django_1.7.X] | ||
deps = Django>=1.7, <1.8 | ||
|
||
[testenv:coverage] | ||
commands = | ||
coverage run --branch --include={toxinidir}/django_featurette/* --omit={toxinidir}/django_featurette/tests* {envbindir}/django-admin.py test django_featurette | ||
coveralls | ||
deps = | ||
coveralls | ||
{[testenv:django_1.6.X]deps} | ||
Django>=1.7,<1.8 |