diff options
author | coderick14 | 2017-05-17 15:40:18 +0530 |
---|---|---|
committer | coderick14 | 2017-05-17 15:41:00 +0530 |
commit | fe407193c200e03070928c1e2c1a6e067d32893d (patch) | |
tree | 1c492aa814754b5db5d644c769f5382306217298 /sbhs_server/slot/migrations/0001_slot_timing_data.py | |
parent | 9a1393e8470d855762e699abca9911b9cdae6a7d (diff) | |
download | SBHS-2018-Rpi-fe407193c200e03070928c1e2c1a6e067d32893d.tar.gz SBHS-2018-Rpi-fe407193c200e03070928c1e2c1a6e067d32893d.tar.bz2 SBHS-2018-Rpi-fe407193c200e03070928c1e2c1a6e067d32893d.zip |
Upgrade to Django 1.11
- Database integration yet to be tested
Diffstat (limited to 'sbhs_server/slot/migrations/0001_slot_timing_data.py')
-rw-r--r-- | sbhs_server/slot/migrations/0001_slot_timing_data.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sbhs_server/slot/migrations/0001_slot_timing_data.py b/sbhs_server/slot/migrations/0001_slot_timing_data.py deleted file mode 100644 index 158f201..0000000 --- a/sbhs_server/slot/migrations/0001_slot_timing_data.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- 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 |