diff --git a/ietf/name/fixtures/names.json b/ietf/name/fixtures/names.json index 5fabc00aa..d3face474 100644 --- a/ietf/name/fixtures/names.json +++ b/ietf/name/fixtures/names.json @@ -11433,6 +11433,16 @@ "model": "name.rolename", "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": { "desc": "", @@ -14481,7 +14491,7 @@ "fields": { "command": "xym", "switch": "--version", - "time": "2020-05-10T00:12:51.809", + "time": "2020-06-04T00:13:08.473", "used": true, "version": "xym 0.4.8" }, @@ -14492,7 +14502,7 @@ "fields": { "command": "pyang", "switch": "--version", - "time": "2020-05-10T00:12:53.489", + "time": "2020-06-04T00:13:09.826", "used": true, "version": "pyang 2.2.1" }, @@ -14503,7 +14513,7 @@ "fields": { "command": "yanglint", "switch": "--version", - "time": "2020-05-10T00:12:53.919", + "time": "2020-06-04T00:13:10.047", "used": true, "version": "yanglint SO 1.6.7" }, @@ -14514,7 +14524,7 @@ "fields": { "command": "xml2rfc", "switch": "--version", - "time": "2020-05-10T00:12:56.462", + "time": "2020-06-04T00:13:11.820", "used": true, "version": "xml2rfc 2.44.0" }, diff --git a/ietf/name/migrations/0012_role_name_robots.py b/ietf/name/migrations/0012_role_name_robots.py new file mode 100644 index 000000000..bc5c37980 --- /dev/null +++ b/ietf/name/migrations/0012_role_name_robots.py @@ -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) + ]