Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'jezdez/master' into custom_fields
- Loading branch information
Showing
24 changed files
with
373 additions
and
116 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 |
---|---|---|
@@ -1,31 +1,21 @@ | ||
sudo: false | ||
language: python | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
install: | ||
- pip install tox | ||
env: | ||
- TOXENV=py26-django-14 | ||
- TOXENV=py27-django-14 | ||
- TOXENV=py26-django-15 | ||
- TOXENV=py26-django-16 | ||
- TOXENV=py27-django-15 | ||
- TOXENV=py27-django-16 | ||
- TOXENV=py32-django-15 | ||
- TOXENV=py32-django-16 | ||
- TOXENV=py33-django-15 | ||
- TOXENV=py33-django-16 | ||
- TOXENV=py34-django-15 | ||
- TOXENV=py34-django-16 | ||
- TOXENV=pypy-django-15 | ||
- TOXENV=pypy-django-16 | ||
- TOXENV=py27-django-17 | ||
- TOXENV=py27-django-master | ||
- TOXENV=py32-django-17 | ||
- TOXENV=py32-django-master | ||
- TOXENV=py27-django-18 | ||
- TOXENV=py33-django-17 | ||
- TOXENV=py33-django-master | ||
- TOXENV=py33-django-18 | ||
- TOXENV=py34-django-17 | ||
- TOXENV=py34-django-master | ||
- TOXENV=py34-django-18 | ||
- TOXENV=pypy-django-17 | ||
- TOXENV=pypy-django-18 | ||
- TOXENV=py27-django-master | ||
- TOXENV=py34-django-master | ||
- TOXENV=pypy-django-master | ||
script: | ||
- tox |
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,7 +1,39 @@ | ||
Jiri Barton <jbar@hosting4u.cz> | ||
Vojtech Jasny <voy@voy.cz> | ||
Roman Krejcik <farin@farin.cz> | ||
Jan Vesely <jave@janvesely.com> | ||
Ales Zoulek <ales.zoulek@gmail.com> | ||
Jannis Leidel <jannis@leidel.info> | ||
Alexander frenzel <alex@relatedworks.com> | ||
Bouke Haarsma <bouke@webatoom.nl> | ||
Camilo Nova <camilo.nova@gmail.com> | ||
Charlie Hornsby <charlie.hornsby@hotmail.co.uk> | ||
Curtis Maloney <curtis@tinbrain.net> | ||
Dan Poirier <dpoirier@caktusgroup.com> | ||
David Burke <dmbst32@gmail.com> | ||
Florian Apolloner <florian@apolloner.eu> | ||
Igor Támara <igor@axiacore.com> | ||
Jake Merdich <jmerdich@users.noreply.github.com> | ||
Jannis Leidel <jannis@leidel.info> | ||
Janusz Harkot <janusz.harkot@gmail.com> | ||
Jiri Barton <jbar@hosting4u.cz> | ||
Jonas <jvp@jonasundderwolf.de> | ||
Kuba Zarzycki <jakubzarzycki@gmail.com> | ||
Leandra Finger <leandra.finger@gmail.com> | ||
Les Orchard <me@lmorchard.com> | ||
Lin Xianyi <iynaix@gmail.com> | ||
Marcin Baran <marcin.baran@agencjawmc.pl> | ||
Mario Orlandi <morlandi@brainstorm.it> | ||
Mario Rosa <mario@dwaiter.com> | ||
Mattia Larentis <mattia@larentis.eu> | ||
Merijn Bertels <merijn.bertels@gmail.com> | ||
Omer Katz <omer.drow@gmail.com> | ||
Petr Knap <dev@petrknap.cz> | ||
Philip Neustrom <philipn@gmail.com> | ||
Pierre-Olivier Marec <pomarec@free.fr> | ||
Roman Krejcik <farin@farin.cz> | ||
Silvan Spross <silvan.spross@gmail.com> | ||
Sławek Ehlert <slafs@op.pl> | ||
Vojtech Jasny <voy@voy.cz> | ||
Yin Jifeng <jifeng.yin@gmail.com> | ||
illumin-us-r3v0lution <luminaries@riseup.net> | ||
mega <qoisone@gmail.com> | ||
saw2th <stephen@saw2th.co.uk> | ||
trbs <trbs@trbs.net> | ||
vl <1844144@gmail.com> | ||
vl <vl@u64.(none)> |
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
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,7 +1,34 @@ | ||
from django.db.models import signals | ||
from django import VERSION | ||
from django.apps import AppConfig | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
class ConstanceConfig(AppConfig): | ||
name = 'constance' | ||
verbose_name = _('Constance') | ||
|
||
def ready(self): | ||
super(ConstanceConfig, self).ready() | ||
signals.post_migrate.connect(self.create_perm, | ||
dispatch_uid='constance.create_perm') | ||
|
||
def create_perm(self, *args, **kwargs): | ||
""" | ||
Creates a fake content type and permission | ||
to be able to check for permissions | ||
""" | ||
from django.contrib.auth.models import Permission | ||
from django.contrib.contenttypes.models import ContentType | ||
|
||
if ContentType._meta.installed and Permission._meta.installed: | ||
extra = {} if VERSION >= (1, 8) else {'name': 'config'} | ||
content_type, created = ContentType.objects.get_or_create( | ||
app_label='constance', | ||
model='config', | ||
**extra) | ||
|
||
permission, created = Permission.objects.get_or_create( | ||
name='Can change config', | ||
content_type=content_type, | ||
codename='change_config') |
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
Binary file not shown.
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 was deleted.
Oops, something went wrong.
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 @@ | ||
from .utils import override_config |
Oops, something went wrong.