17476 Upgrade to Django 5.1 (#17620)

* 17476 Upgrade to Django 5.1

* 16136 fix migrations

* 17476 update remove GFK from fields

* 17476 fix

* 17476 update django to bugfix release

* fix comma
This commit is contained in:
Arthur Hanson 2024-10-10 06:08:58 -07:00 committed by GitHub
parent 1969f0dc71
commit 3f469b0b0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 11 deletions

View File

@ -202,7 +202,7 @@ class EventRuleImportForm(NetBoxModelImportForm):
model = EventRule
fields = (
'name', 'description', 'enabled', 'conditions', 'object_types', 'event_types', 'action_type',
'action_object', 'comments', 'tags'
'comments', 'tags'
)
def clean(self):

View File

@ -131,10 +131,6 @@ class Migration(migrations.Migration):
name='webhook',
unique_together={('payload_url', 'type_create', 'type_update', 'type_delete')},
),
migrations.AlterIndexTogether(
name='taggeditem',
index_together={('content_type', 'object_id')},
),
migrations.AlterUniqueTogether(
name='exporttemplate',
unique_together={('content_type', 'name')},

View File

@ -98,10 +98,9 @@ class Migration(migrations.Migration):
name='object_types',
field=models.ManyToManyField(blank=True, related_name='+', to='contenttypes.contenttype'),
),
migrations.RenameIndex(
migrations.AddIndex(
model_name='taggeditem',
new_name='extras_tagg_content_717743_idx',
old_fields=('content_type', 'object_id'),
index=models.Index(fields=['content_type', 'object_id'], name='extras_tagg_content_717743_idx'),
),
migrations.CreateModel(
name='Bookmark',

View File

@ -591,7 +591,7 @@ class VLANGroupForm(NetBoxModelForm):
class Meta:
model = VLANGroup
fields = [
'name', 'slug', 'description', 'vid_ranges', 'scope_type', 'scope', 'tags',
'name', 'slug', 'description', 'vid_ranges', 'scope_type', 'tags',
]
def __init__(self, *args, **kwargs):

View File

@ -258,7 +258,7 @@ class TunnelTerminationForm(NetBoxModelForm):
class Meta:
model = TunnelTermination
fields = [
'tunnel', 'role', 'termination', 'outside_ip', 'tags',
'tunnel', 'role', 'outside_ip', 'tags',
]
def __init__(self, *args, initial=None, **kwargs):

View File

@ -1,4 +1,4 @@
Django==5.0.9
Django==5.1.2
django-cors-headers==4.4.0
django-debug-toolbar==4.4.6
django-filter==24.3