Skip to content

Commit 350ea9e

Browse files
committed
Removed all use of timedeltafield by converting old migrations to reference compatible types.
- Legacy-Id: 12825
1 parent 7f607c5 commit 350ea9e

15 files changed

Lines changed: 6 additions & 1211 deletions

ietf/meeting/migrations/0001_initial.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from django.db import models, migrations
55
import datetime
6-
import ietf.meeting.timedeltafield
7-
86

97
class Migration(migrations.Migration):
108

@@ -112,7 +110,7 @@ class Migration(migrations.Migration):
112110
('attendees', models.IntegerField(null=True, blank=True)),
113111
('agenda_note', models.CharField(max_length=255, blank=True)),
114112
('requested', models.DateTimeField(default=datetime.datetime.now)),
115-
('requested_duration', ietf.meeting.timedeltafield.TimedeltaField(default=0)),
113+
('requested_duration', models.IntegerField(default=0)),
116114
('comments', models.TextField(blank=True)),
117115
('scheduled', models.DateTimeField(null=True, blank=True)),
118116
('modified', models.DateTimeField(default=datetime.datetime.now)),
@@ -141,7 +139,7 @@ class Migration(migrations.Migration):
141139
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
142140
('name', models.CharField(max_length=255)),
143141
('time', models.DateTimeField()),
144-
('duration', ietf.meeting.timedeltafield.TimedeltaField()),
142+
('duration', models.IntegerField()),
145143
('show_location', models.BooleanField(default=True, help_text=b'Show location in agenda')),
146144
('modified', models.DateTimeField(default=datetime.datetime.now)),
147145
('location', models.ForeignKey(blank=True, to='meeting.Room', null=True)),

ietf/meeting/migrations/0002_auto_20150221_0947.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from __future__ import unicode_literals
33

44
from django.db import models, migrations
5-
import timedelta.fields
6-
75

86
class Migration(migrations.Migration):
97

@@ -27,13 +25,13 @@ class Migration(migrations.Migration):
2725
migrations.AddField(
2826
model_name='meeting',
2927
name='idsubmit_cutoff_time_utc',
30-
field=timedelta.fields.TimedeltaField(default=86399.0, help_text=b'The time of day (UTC) after which submission will be closed. Use for example 23 hours, 59 minutes, 59 seconds.'),
28+
field=models.CharField(max_length=20, default='86399.0', help_text=b'The time of day (UTC) after which submission will be closed. Use for example 23 hours, 59 minutes, 59 seconds.'),
3129
preserve_default=True,
3230
),
3331
migrations.AddField(
3432
model_name='meeting',
3533
name='idsubmit_cutoff_warning_days',
36-
field=timedelta.fields.TimedeltaField(default=1814400.0, help_text=b'How long before the 00 cutoff to start showing cutoff warnings. Use for example 21 days or 3 weeks.'),
34+
field=models.CharField(max_length=20, default='1814400.0', help_text=b'How long before the 00 cutoff to start showing cutoff warnings. Use for example 21 days or 3 weeks.'),
3735
preserve_default=True,
3836
),
3937
]

ietf/meeting/migrations/0003_auto_20150304_0738.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from __future__ import unicode_literals
33

44
from django.db import models, migrations
5-
import timedelta.fields
6-
75

86
class Migration(migrations.Migration):
97

@@ -27,13 +25,13 @@ class Migration(migrations.Migration):
2725
migrations.AlterField(
2826
model_name='meeting',
2927
name='idsubmit_cutoff_time_utc',
30-
field=timedelta.fields.TimedeltaField(default=86399.0, help_text=b'The time of day (UTC) after which submission will be closed. Use for example 23 hours, 59 minutes, 59 seconds.', blank=True),
28+
field=models.CharField(max_length=20, default='86399.0', help_text=b'The time of day (UTC) after which submission will be closed. Use for example 23 hours, 59 minutes, 59 seconds.', blank=True),
3129
preserve_default=True,
3230
),
3331
migrations.AlterField(
3432
model_name='meeting',
3533
name='idsubmit_cutoff_warning_days',
36-
field=timedelta.fields.TimedeltaField(default=1814400.0, help_text=b'How long before the 00 cutoff to start showing cutoff warnings. Use for example 21 days or 3 weeks.', blank=True),
34+
field=models.CharField(max_length=20, default='1814400.0', help_text=b'How long before the 00 cutoff to start showing cutoff warnings. Use for example 21 days or 3 weeks.', blank=True),
3735
preserve_default=True,
3836
),
3937
]

ietf/meeting/timedeltafield.py

Lines changed: 0 additions & 188 deletions
This file was deleted.

timedelta/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

timedelta/__init__.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)