Skip to content

Commit

Permalink
Bug #1243 Изменение миграций моделей
Browse files Browse the repository at this point in the history
После изменения структуры каталогов миграции моделей стали не актуальными. Создать новые инициализирующие миграции. Плюс убрать автоматическое выполнение фикстур.
  • Loading branch information
vintorez committed Apr 9, 2013
1 parent 737f2d1 commit 4d997bc
Show file tree
Hide file tree
Showing 36 changed files with 264 additions and 6,495 deletions.
2 changes: 1 addition & 1 deletion dump-initial
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
exmo2010.organization \
exmo2010.federal \
exmo2010.entity \
> exmo2010/fixtures/initial_data.json
> exmo2010/fixtures/openness_expressions.json
2 changes: 1 addition & 1 deletion exmo/core/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def get_internal_type(self):

try:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^exmo2010\.fields\.TagField"])
add_introspection_rules([], ["^core\.fields\.TagField"])
except ImportError:
pass
4 changes: 3 additions & 1 deletion exmo/exmo2010/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@

from exmo2010.helpers import *
from exmo2010.models import Monitoring, Score
from exmo2010.signals import score_was_changed, claim_was_posted_or_deleted, clarification_was_posted
from exmo2010.signals import *
from exmo2010.view.helpers import create_revision, score_change_notify
from tasks.views import task_user_change_notify


if hasattr(settings, 'USE_EMAIL') and settings.USE_EMAIL:
comment_will_be_posted.connect(comment_notification)
score_was_changed.connect(score_change_notify)
claim_was_posted_or_deleted.connect(claim_notification)
clarification_was_posted.connect(clarification_notification)
task_user_changed.connect(task_user_change_notify)

post_save.connect(post_save_model)
pre_save.connect(create_revision, sender=Score)
Expand Down
File renamed without changes.
359 changes: 259 additions & 100 deletions exmo/exmo2010/migrations/0001_initial.py

Large diffs are not rendered by default.

This file was deleted.

Loading

0 comments on commit 4d997bc

Please sign in to comment.