Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4e034a5e authored by Vincent SIMONIN's avatar Vincent SIMONIN
Browse files

Merge branch 'http_headers_schema_update' into 'main'

Update HttpHeader schema

See merge request !12
parents c59d340c 76823e3e
No related branches found
No related tags found
1 merge request!12Update HttpHeader schema
Pipeline #67530 passed
......@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
setup(
name='netbox-rps-plugin',
version='0.7.0',
version='0.7.1',
description='A Netbox plugin to add RPS resources',
install_requires=[],
packages=find_packages('./src'),
......
......@@ -5,7 +5,7 @@ class NetBoxRpsConfig(PluginConfig):
name = 'netbox_rps_plugin'
verbose_name = 'NetBox RPS'
description = 'A Netbox plugin to add RPS resources'
version = '0.7.0'
version = '0.7.1'
author = "Vincent Simonin"
author_email = "vincent.simonin@ext.ec.europa.eu"
base_url = 'rps'
......
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('netbox_rps_plugin', '0002_http_header')
]
operations = [
migrations.AlterField(
model_name='httpheader',
name='value',
field=models.CharField(max_length=256, null=True, blank=True),
),
migrations.AddConstraint(
model_name='httpheader',
constraint=models.UniqueConstraint(fields=('mapping', 'name', 'apply_to'), name='netbox_rps_plugin_httpheader_unique_mapping_name_apply_to'),
),
]
......@@ -85,8 +85,9 @@ class HttpHeader(NetBoxModel):
verbose_name='Header name'
)
value = models.CharField(
max_length=120,
blank=False,
max_length=256,
null=True,
blank=True,
verbose_name='Header value'
)
apply_to = models.CharField(
......@@ -98,4 +99,5 @@ class HttpHeader(NetBoxModel):
)
class Meta:
unique_together = ['mapping', 'name', 'apply_to']
ordering = ['name']
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