-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fabric task to launch Django 1.8 upgrade.
Fixed migrations issues with Django 1.8
- Loading branch information
Showing
12 changed files
with
90 additions
and
35 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
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,18 @@ | ||
#encoding: utf8 | ||
from __future__ import unicode_literals | ||
|
||
TITLE_TO_SLUG = { | ||
'איגוד הביטקוין': 'bitcoin-org-il', | ||
'אליאב': 'eliav', | ||
'* בדיקות פרודקשיין *': 'production-test', | ||
'בי״ס עמית': 'amit', | ||
'הבר קיימא': 'barkayma', | ||
'הסדנא לידע ציבורי': 'hasadna', | ||
'הפורום לממשל פתוח': 'open-government', | ||
'התנועה לאיכות השלטון': 'mqg', | ||
'מעיין ברוך': 'maayan-baruch', | ||
'מרצ': 'meretz', | ||
'נטף': 'nataf', | ||
'נען': 'naan', | ||
'קהילה פתוחה': 'open-community', | ||
} |
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
from communities.legacy_mapping import TITLE_TO_SLUG | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
def create_community_slug(apps, schema_editor): | ||
Community = apps.get_model("communities", "Community") | ||
communities = Community.objects.filter(slug__isnull=True) | ||
for c in communities: | ||
c.slug = TITLE_TO_SLUG.get(c.name, "c{}".format(c.id)) | ||
c.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('communities', '0008_auto_20150514_1518'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(create_community_slug), | ||
] |
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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
EMAIL_SUBJECT_PREFIX = '[OpenCommunity] ' | ||
FROM_EMAIL = "[email protected]" | ||
FROM_EMAIL_NAME = "DemOS" | ||
HOST_URL = "http://localhost:8000" | ||
|
||
MANAGERS = (('Boaz Chen', '[email protected]'),) | ||
|
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