* 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
@@ -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):
@@ -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')},
@@ -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',
@@ -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):
@@ -258,7 +258,7 @@ class TunnelTerminationForm(NetBoxModelForm):
model = TunnelTermination
- 'tunnel', 'role', 'termination', 'outside_ip', 'tags',
+ 'tunnel', 'role', 'outside_ip', 'tags',
def __init__(self, *args, initial=None, **kwargs):
@@ -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