diff --git a/zezere.conf b/zezere.conf new file mode 100644 index 0000000..42bf231 --- /dev/null +++ b/zezere.conf @@ -0,0 +1,25 @@ +[global] +# secret_key = +debug = no +allowed_hosts = localhost, localhost.localdomain +secure_cookie = yes +# auth_method = local, oidc + +[oidc.rp] +# client_id = +# client_secret = +sign_algo = RS256 + +[oidc.op] +# authorization_endpoint = +# token_endpoint = +# userinfo_endpoint = +# jwks_endpoint = + +[database] +engine = django.db.backends.sqlite3 +name = ./db.sqlite3 + +[secure_proxy_ssl_header] +# header = HTTP_X_FORWARDED_PROTO +# value = https diff --git a/zezere/migrations/0013_runrequest_notes_alter_device_mac_address.py b/zezere/migrations/0013_runrequest_notes_alter_device_mac_address.py new file mode 100644 index 0000000..04a23da --- /dev/null +++ b/zezere/migrations/0013_runrequest_notes_alter_device_mac_address.py @@ -0,0 +1,25 @@ +# Generated by Django 4.0.4 on 2022-04-11 19:09 + +import django.core.validators +from django.db import migrations, models +import zezere.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('zezere', '0012_auto_20200323_1130'), + ] + + operations = [ + migrations.AddField( + model_name='runrequest', + name='notes', + field=models.CharField(blank=True, max_length=255, null=True, verbose_name='RunRequest notes'), + ), + migrations.AlterField( + model_name='device', + name='mac_address', + field=models.CharField(max_length=20, unique=True, validators=[django.core.validators.RegexValidator('^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$'), zezere.models.validator_disallow_blacklisted_mac], verbose_name='Device MAC Address'), + ), + ] diff --git a/zezere/models.py b/zezere/models.py index 731113d..5e675f7 100644 --- a/zezere/models.py +++ b/zezere/models.py @@ -61,6 +61,10 @@ class Meta: "RunRequest type", max_length=2, choices=TYPE_CHOICES ) + notes: models.CharField = models.CharField( + "RunRequest notes", null=True, blank=True, max_length=255 + ) + kernel_url: models.URLField = models.URLField( "Kernel URL", null=True, blank=True, max_length=255 )