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

Make X509 certificate subject unique

parent b9bade4c
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-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)
......
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