-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from ambitioninc/develop
Release 2.0.0
- Loading branch information
Showing
9 changed files
with
74 additions
and
9 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
21 changes: 21 additions & 0 deletions
21
localized_recurrence/migrations/0002_localizedrecurrence_offset2.py
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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.11 on 2016-11-08 21:17 | ||
from __future__ import unicode_literals | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('localized_recurrence', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='localizedrecurrence', | ||
name='offset2', | ||
field=models.DurationField(default=datetime.timedelta(0)), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
localized_recurrence/migrations/0003_offset_data_migration.py
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 datetime import timedelta | ||
from django.db import migrations | ||
|
||
|
||
def migrate_integers_to_intervals(apps, schema_editor): | ||
# Migrate custom DurationField values to Django's Native DurationField values | ||
LocalizedRecurrence = apps.get_model('localized_recurrence', 'LocalizedRecurrence') | ||
for lr in LocalizedRecurrence.objects.all(): | ||
lr.offset2 = lr.offset | ||
lr.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('localized_recurrence', '0002_localizedrecurrence_offset2'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(migrate_integers_to_intervals), | ||
] |
25 changes: 25 additions & 0 deletions
25
localized_recurrence/migrations/0004_auto_20161108_2151.py
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,25 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.11 on 2016-11-08 21:51 | ||
from __future__ import unicode_literals | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('localized_recurrence', '0003_offset_data_migration'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='localizedrecurrence', | ||
name='offset', | ||
), | ||
migrations.RenameField( | ||
model_name='localizedrecurrence', | ||
old_name='offset2', | ||
new_name='offset', | ||
), | ||
] |
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 +1 @@ | ||
__version__ = '1.3.1' | ||
__version__ = '2.0.0' |
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