Added a new role 'Robot', for use with reg-system and mail-archive automated accesses.
- Legacy-Id: 17933
This commit is contained in:
parent
c01dcddea1
commit
ff0279e7ae
|
@ -11433,6 +11433,16 @@
|
||||||
"model": "name.rolename",
|
"model": "name.rolename",
|
||||||
"pk": "reviewer"
|
"pk": "reviewer"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fields": {
|
||||||
|
"desc": "A role for API access by external scripts or entities, such as the mail archive, registrations system, etc.",
|
||||||
|
"name": "Automation Robot",
|
||||||
|
"order": 0,
|
||||||
|
"used": true
|
||||||
|
},
|
||||||
|
"model": "name.rolename",
|
||||||
|
"pk": "robot"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fields": {
|
"fields": {
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
@ -14481,7 +14491,7 @@
|
||||||
"fields": {
|
"fields": {
|
||||||
"command": "xym",
|
"command": "xym",
|
||||||
"switch": "--version",
|
"switch": "--version",
|
||||||
"time": "2020-05-10T00:12:51.809",
|
"time": "2020-06-04T00:13:08.473",
|
||||||
"used": true,
|
"used": true,
|
||||||
"version": "xym 0.4.8"
|
"version": "xym 0.4.8"
|
||||||
},
|
},
|
||||||
|
@ -14492,7 +14502,7 @@
|
||||||
"fields": {
|
"fields": {
|
||||||
"command": "pyang",
|
"command": "pyang",
|
||||||
"switch": "--version",
|
"switch": "--version",
|
||||||
"time": "2020-05-10T00:12:53.489",
|
"time": "2020-06-04T00:13:09.826",
|
||||||
"used": true,
|
"used": true,
|
||||||
"version": "pyang 2.2.1"
|
"version": "pyang 2.2.1"
|
||||||
},
|
},
|
||||||
|
@ -14503,7 +14513,7 @@
|
||||||
"fields": {
|
"fields": {
|
||||||
"command": "yanglint",
|
"command": "yanglint",
|
||||||
"switch": "--version",
|
"switch": "--version",
|
||||||
"time": "2020-05-10T00:12:53.919",
|
"time": "2020-06-04T00:13:10.047",
|
||||||
"used": true,
|
"used": true,
|
||||||
"version": "yanglint SO 1.6.7"
|
"version": "yanglint SO 1.6.7"
|
||||||
},
|
},
|
||||||
|
@ -14514,7 +14524,7 @@
|
||||||
"fields": {
|
"fields": {
|
||||||
"command": "xml2rfc",
|
"command": "xml2rfc",
|
||||||
"switch": "--version",
|
"switch": "--version",
|
||||||
"time": "2020-05-10T00:12:56.462",
|
"time": "2020-06-04T00:13:11.820",
|
||||||
"used": true,
|
"used": true,
|
||||||
"version": "xml2rfc 2.44.0"
|
"version": "xml2rfc 2.44.0"
|
||||||
},
|
},
|
||||||
|
|
23
ietf/name/migrations/0012_role_name_robots.py
Normal file
23
ietf/name/migrations/0012_role_name_robots.py
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Copyright The IETF Trust 2020, All Rights Reserved
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
def forward(apps, schema_editor):
|
||||||
|
RoleName = apps.get_model('name','RoleName')
|
||||||
|
RoleName.objects.get_or_create(slug='robot', name='Automation Robot', desc='A role for API access by external scripts or entities, such as the mail archive, registrations system, etc.', used=True, order=0)
|
||||||
|
|
||||||
|
def reverse(apps, schema_editor):
|
||||||
|
RoleName = apps.get_model('name','RoleName')
|
||||||
|
RoleName.objects.filter(slug='robot').delete()
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('name', '0011_constraintname_editor_label'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunPython(forward, reverse)
|
||||||
|
]
|
Loading…
Reference in a new issue