Commit 1dfae374 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Make X509 certificate subject unique

parent b9bade4c
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-03 17:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ligoauth', '0039_delete_alternateemail_model'),
]
operations = [
migrations.AlterField(
model_name='x509cert',
name='subject',
field=models.CharField(max_length=255, unique=True),
),
]
......@@ -25,7 +25,7 @@ class RobotUser(User):
class X509Cert(models.Model):
"""Model for storing X.509 certificate subjects for API access"""
subject = models.CharField(max_length=300)
subject = models.CharField(max_length=255, unique=True, null=False)
users = models.ManyToManyField(User)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment