blob: 158f201510e1e9e7b99c42aa0e09f80aa15ac417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from sbhs_server.tables.models import Slot
class Migration(DataMigration):
def forwards(self, orm):
# "Write your forwards methods here."
# Note: Don't use "from appname.models import ModelName".
# Use orm.ModelName to refer to models in this application,
# and orm['appname.ModelName'] for models in other applications.
for i in xrange(24):
Slot.objects.create(start_hour=i, end_hour=i, start_minute=0, end_minute=55)
def backwards(self, orm):
# "Write your backwards methods here."
for i in xrange(24):
Slot.objects.delete(i)
models = {
}
complete_apps = ['slot']
symmetrical = True
|