mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 11:56:25 -06:00
Clean up migrations
This commit is contained in:
parent
973c410db2
commit
d1802bff0b
@ -1,5 +1,3 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-13 17:15
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +5,7 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('circuits', '0048_circuitterminations_cached_relations'),
|
('circuits', '0048_circuitterminations_cached_relations'),
|
||||||
('dcim', '0197_natural_sort'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
17
netbox/dcim/migrations/0197_natural_sort_collation.py
Normal file
17
netbox/dcim/migrations/0197_natural_sort_collation.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
from django.contrib.postgres.operations import CreateCollation
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('dcim', '0196_qinq_svlan'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
CreateCollation(
|
||||||
|
"natural_sort",
|
||||||
|
provider="icu",
|
||||||
|
locale="und-u-kn-true",
|
||||||
|
),
|
||||||
|
]
|
@ -1,21 +1,13 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-12 22:21
|
|
||||||
|
|
||||||
from django.contrib.postgres.operations import CreateCollation
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('dcim', '0196_qinq_svlan'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
CreateCollation(
|
|
||||||
"natural_sort",
|
|
||||||
provider="icu",
|
|
||||||
locale="und-u-kn-true",
|
|
||||||
),
|
|
||||||
migrations.AlterModelOptions(
|
migrations.AlterModelOptions(
|
||||||
name='site',
|
name='site',
|
||||||
options={'ordering': ('name',)},
|
options={'ordering': ('name',)},
|
@ -1,5 +1,3 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-13 17:15
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +5,7 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('ipam', '0075_vlan_qinq'),
|
('ipam', '0075_vlan_qinq'),
|
||||||
('dcim', '0197_natural_sort'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
18
netbox/project-static/src/buttons/launchModal.ts
Normal file
18
netbox/project-static/src/buttons/launchModal.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { getElements } from '../util';
|
||||||
|
import { Modal } from 'bootstrap';
|
||||||
|
|
||||||
|
export function initLaunchModal(): void {
|
||||||
|
console.log('initLaunchModal()');
|
||||||
|
const modal_element = document.getElementById('htmx-modal');
|
||||||
|
if (modal_element == null) return;
|
||||||
|
console.log('found modal element');
|
||||||
|
const modal = new Modal(modal_element);
|
||||||
|
console.log('created modal');
|
||||||
|
|
||||||
|
for (const launchButton of getElements<HTMLButtonElement>('button.launch-htmx-modal')) {
|
||||||
|
console.log(`found button: {launchButton}`);
|
||||||
|
launchButton.addEventListener('click', () => {
|
||||||
|
modal.show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,3 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-13 17:15
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +5,7 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('tenancy', '0016_charfield_null_choices'),
|
('tenancy', '0016_charfield_null_choices'),
|
||||||
('dcim', '0197_natural_sort'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
@ -1,5 +1,3 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-13 16:54
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +5,7 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('virtualization', '0045_clusters_cached_relations'),
|
('virtualization', '0045_clusters_cached_relations'),
|
||||||
('dcim', '0197_natural_sort'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
@ -1,5 +1,3 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-13 17:15
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +5,7 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('vpn', '0006_charfield_null_choices'),
|
('vpn', '0006_charfield_null_choices'),
|
||||||
('dcim', '0197_natural_sort'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
@ -1,5 +1,3 @@
|
|||||||
# Generated by Django 5.0.9 on 2024-11-13 17:15
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
@ -7,7 +5,7 @@ class Migration(migrations.Migration):
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('wireless', '0011_wirelesslan__location_wirelesslan__region_and_more'),
|
('wireless', '0011_wirelesslan__location_wirelesslan__region_and_more'),
|
||||||
('dcim', '0197_natural_sort'),
|
('dcim', '0197_natural_sort_collation'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
Loading…
Reference in New Issue
Block a user