Skip to content

Commit

Permalink
0.2.1 release
Browse files Browse the repository at this point in the history
Fixes migration issue
  • Loading branch information
Jason Yates committed Apr 4, 2022
1 parent 98b7880 commit 18a67dd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion netbox_documents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class NetboxDocuments(PluginConfig):
name = 'netbox_documents'
verbose_name = 'Document Storage'
description = 'Manage site, circuit and device diagrams and documents in Netbox'
version = '0.2'
version = '0.2.1'
base_url = 'documents'
default_settings = {
"enable_site_documents": True,
Expand Down
34 changes: 16 additions & 18 deletions netbox_documents/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.0.3 on 2022-04-04 16:33
# Generated by Django 4.0.3 on 2022-04-04 19:31

import django.core.serializers.json
from django.db import migrations, models
Expand All @@ -9,69 +9,67 @@

class Migration(migrations.Migration):

replaces = [('netbox_documents', '0001_initial'), ('netbox_documents', '0002_devicedocument_document'), ('netbox_documents', '0003_alter_circuitdocument_name_alter_devicedocument_name_and_more'), ('netbox_documents', '0004_remove_circuitdocument_file_name_and_more'), ('netbox_documents', '0005_alter_sitedocument_options')]

initial = True

dependencies = [
('extras', '0072_created_datetimefield'),
('dcim', '0153_created_datetimefield'),
('circuits', '0034_created_datetimefield'),
('extras', '0072_created_datetimefield'),
]

operations = [
migrations.CreateModel(
name='DeviceDocument',
name='SiteDocument',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder)),
('name', models.CharField(blank=True, max_length=100)),
('document', models.FileField(upload_to=netbox_documents.utils.file_upload)),
('document_type', models.CharField(max_length=30)),
('comments', models.TextField(blank=True)),
('device', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='dcim.device')),
('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='extras.TaggedItem', to='extras.Tag', verbose_name='Tags')),
('document', models.FileField(default=None, upload_to=netbox_documents.utils.file_upload)),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='dcim.site')),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
'ordering': ('name',),
'ordering': ('-created', 'name'),
},
),
migrations.CreateModel(
name='CircuitDocument',
name='DeviceDocument',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder)),
('name', models.CharField(blank=True, max_length=100)),
('document', models.FileField(upload_to=netbox_documents.utils.file_upload)),
('document_type', models.CharField(max_length=30)),
('comments', models.TextField(blank=True)),
('circuit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='circuits.circuit')),
('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='extras.TaggedItem', to='extras.Tag', verbose_name='Tags')),
('document', models.FileField(default=None, upload_to=netbox_documents.utils.file_upload)),
('device', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='dcim.device')),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
'ordering': ('name',),
},
),
migrations.CreateModel(
name='SiteDocument',
name='CircuitDocument',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('last_updated', models.DateTimeField(auto_now=True, null=True)),
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder)),
('name', models.CharField(blank=True, max_length=100)),
('document', models.FileField(upload_to=netbox_documents.utils.file_upload)),
('document_type', models.CharField(max_length=30)),
('comments', models.TextField(blank=True)),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='dcim.site')),
('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='extras.TaggedItem', to='extras.Tag', verbose_name='Tags')),
('document', models.FileField(default=None, upload_to=netbox_documents.utils.file_upload)),
('circuit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='circuits.circuit')),
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
],
options={
'ordering': ('-created', 'name'),
'ordering': ('name',),
},
),
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='netbox-documents',
version='0.2',
version='0.2.1',
description='Manage site, circuit and device diagrams and documents in Netbox',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 18a67dd

Please sign in to comment.