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

making N non-editable for EMObservations

parent d4580b6b
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-04-30 17:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0020_tag_unique_name'),
]
operations = [
migrations.AlterField(
model_name='emobservation',
name='N',
field=models.IntegerField(editable=False),
),
]
......@@ -386,7 +386,7 @@ class EMObservationBase(models.Model):
abstract = True
ordering = ['-created', '-N']
N = models.IntegerField(null=False)
N = models.IntegerField(null=False, editable=False)
created = models.DateTimeField(auto_now_add=True)
submitter = models.ForeignKey(UserModel, null=False,
related_name='%(app_label)s_%(class)s_set')
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-04-30 17:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('superevents', '0002_superevent_label_unique_together'),
]
operations = [
migrations.AlterField(
model_name='emobservation',
name='N',
field=models.IntegerField(editable=False),
),
]
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