Closes #9391: Remove 500-character limit for custom link text & URL fields

This commit is contained in:
jeremystretch 2022-07-28 14:36:20 -04:00
parent a6be8dccf5
commit c5fb7b72f0
3 changed files with 24 additions and 4 deletions

View File

@ -93,6 +93,7 @@ Custom field UI visibility has no impact on API operation.
* [#8995](https://github.com/netbox-community/netbox/issues/8995) - Enable arbitrary ordering of REST API results * [#8995](https://github.com/netbox-community/netbox/issues/8995) - Enable arbitrary ordering of REST API results
* [#9070](https://github.com/netbox-community/netbox/issues/9070) - Hide navigation menu items based on user permissions * [#9070](https://github.com/netbox-community/netbox/issues/9070) - Hide navigation menu items based on user permissions
* [#9177](https://github.com/netbox-community/netbox/issues/9177) - Add tenant assignment for wireless LANs & links * [#9177](https://github.com/netbox-community/netbox/issues/9177) - Add tenant assignment for wireless LANs & links
* [#9391](https://github.com/netbox-community/netbox/issues/9391) - Remove 500-character limit for custom link text & URL fields
* [#9536](https://github.com/netbox-community/netbox/issues/9536) - Track API token usage times * [#9536](https://github.com/netbox-community/netbox/issues/9536) - Track API token usage times
* [#9582](https://github.com/netbox-community/netbox/issues/9582) - Enable assigning config contexts based on device location * [#9582](https://github.com/netbox-community/netbox/issues/9582) - Enable assigning config contexts based on device location

View File

@ -0,0 +1,21 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('extras', '0076_tag_slug_unicode'),
]
operations = [
migrations.AlterField(
model_name='customlink',
name='link_text',
field=models.TextField(),
),
migrations.AlterField(
model_name='customlink',
name='link_url',
field=models.TextField(),
),
]

View File

@ -204,12 +204,10 @@ class CustomLink(ExportTemplatesMixin, WebhooksMixin, ChangeLoggedModel):
enabled = models.BooleanField( enabled = models.BooleanField(
default=True default=True
) )
link_text = models.CharField( link_text = models.TextField(
max_length=500,
help_text="Jinja2 template code for link text" help_text="Jinja2 template code for link text"
) )
link_url = models.CharField( link_url = models.TextField(
max_length=500,
verbose_name='Link URL', verbose_name='Link URL',
help_text="Jinja2 template code for link URL" help_text="Jinja2 template code for link URL"
) )