Skip to content
Snippets Groups Projects
Commit 9506a567 authored by Roy Williams's avatar Roy Williams
Browse files

Merge branch 'embb_new' of ligo-vcs.phys.uwm.edu:/usr/local/git/gracedb into embb_new

parents e4a36b57 0af62c68
No related branches found
No related tags found
No related merge requests found
...@@ -7,13 +7,20 @@ from django.db import models ...@@ -7,13 +7,20 @@ from django.db import models
class Migration(DataMigration): class Migration(DataMigration):
def forwards(self, orm): def forwards(self, orm):
"Write your forwards methods here." for eel in orm.EMBBEventLog.objects.all():
# Note: Don't use "from appname.models import ModelName". if not eel.raList:
# Use orm.ModelName to refer to models in this application, # Assume that the list values are unset, because this is an old eel.
# and orm['appname.ModelName'] for models in other applications. # For eels with only one footprint, the list fields should just have
# a string-ified version of the single value.
eel.raList = str(eel.ra)
eel.decList = str(eel.dec)
eel.raWidthList = str(eel.raWidth)
eel.gpstimeList = str(eel.gpstime)
eel.decWidthList = str(eel.decWidth)
eel.durationList = str(eel.duration)
def backwards(self, orm): def backwards(self, orm):
"Write your backwards methods here." pass
models = { models = {
u'auth.group': { u'auth.group': {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment