Skip to content
Snippets Groups Projects
Commit 70228aa7 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Add SubGRB search for sub-threshold Fermi GRB triggers

parent 8025f3a8
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-11 20:04
from __future__ import unicode_literals
from django.db import migrations
# Creates initial search instances
# Search names and descriptions
SEARCH = {
'name': 'SubGRB',
'description': 'Sub-threshold GRB events',
}
def add_search(apps, schema_editor):
Search = apps.get_model('events', 'Search')
# Create search
Search.objects.create(**SEARCH)
class Migration(migrations.Migration):
dependencies = [
('events', '0033_pipelinelog_and_pipeline_enabled'),
]
operations = [
migrations.RunPython(add_search, migrations.RunPython.noop),
]
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