Skip to content

Commit

Permalink
Compatibility fix for NetBox 3.7 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
iDebugAll committed Jun 12, 2024
1 parent a8f7f1a commit ebf5e34
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phonebox_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class PhoneBoxConfig(PluginConfig):
name = 'phonebox_plugin'
verbose_name = 'PhoneBox Plugin'
description = 'Telephone Number Management Plugin for NetBox.'
version = 'v0.0.7-beta.2'
version = 'v0.0.8'
author = 'Igor Korotchenkov'
author_email = 'iDebugAll@gmail.com'
base_url = 'phonebox'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by Django 4.2.11 on 2024-06-11 19:00



from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('phonebox_plugin', '0003_voicecircuit'),
]

operations = [
migrations.AlterField(
model_name='number',
name='created',
field=models.DateTimeField(auto_now_add=True, null=True),
),
migrations.AlterField(
model_name='number',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='voicecircuit',
name='created',
field=models.DateTimeField(auto_now_add=True, null=True),
),
migrations.AlterField(
model_name='voicecircuit',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
),
]
2 changes: 2 additions & 0 deletions phonebox_plugin/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

urlpatterns = [
path("", views.NumberListView.as_view(), name="list_view"),
path("number_list/", views.NumberListView.as_view(), name="number_list"),
path("number/<int:pk>/", views.NumberView.as_view(), name="number_view"),
path("add_number/", views.NumberEditView.as_view(), name="add_number"),
path('import_numbers/', views.NumberBulkImportView.as_view(), name='import_numbers'),
Expand All @@ -13,6 +14,7 @@
path("number_bulk_delete/", views.NumberBulkDeleteView.as_view(), name="number_bulk_delete"),
path("voice_circuit/<int:pk>/", views.VoiceCircuitView.as_view(), name="voice_circuit_view"),
path("voice_circuit_list_view/", views.VoiceCircuitListView.as_view(), name="voice_circuit_list_view"),
path("voicecircuit_list/", views.VoiceCircuitListView.as_view(), name="voicecircuit_list"),
path("add_voice_circuit/", views.VoiceCircuitEditView.as_view(), name="add_voice_circuit"),
path('import_voice_circuits/', views.VoiceCircuitBulkImportView.as_view(), name='import_voice_circuits'),
path("voice_circuit/<int:pk>/edit/", views.VoiceCircuitEditView.as_view(), name="voice_circuit_edit"),
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

setup(
name='phonebox_plugin',
version='v0.0.7-beta.2',
version='v0.0.8',
url='https://github.com/iDebugAll/phonebox-plugin.git',
download_url='https://github.com/iDebugAll/phonebox-plugin/archive/v0.0.7-beta.2.tar.gz',
download_url='https://github.com/iDebugAll/phonebox-plugin/archive/v0.0.8.tar.gz',
description='A phone numbers management plugin for NetBox.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit ebf5e34

Please sign in to comment.