Skip to content

Commit 50f3a23

Browse files
authored
Merge pull request #53 from k01ek/dev
Dev
2 parents f86acd0 + b5d3270 commit 50f3a23

File tree

8 files changed

+16
-9
lines changed

8 files changed

+16
-9
lines changed

.github/workflows/pub-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
build-n-publish:
99
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@main
1313
- name: Set up Python 3.7

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PYTHON_VER?=3.8
2-
NETBOX_VER?=v3.2.9
2+
NETBOX_VER?=v3.5.0
33

44
NAME=netbox-qrcode
55

develop/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ RUN git clone --single-branch --branch ${netbox_ver} https://github.com/netbox-c
1515
cd /opt/netbox/ && \
1616
pip install -r /opt/netbox/requirements.txt
1717

18-
# Work around https://github.com/rq/django-rq/issues/421
19-
RUN pip install django-rq==2.3.2
20-
2118
# -------------------------------------------------------------------------------------
2219
# Install Netbox Plugin
2320
# -------------------------------------------------------------------------------------

develop/dev.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PGPASSWORD=sajdhasdj213jh1ss
66
DB_HOST=postgres
77
NAPALM_TIMEOUT=5
88
MAX_PAGE_SIZE=0
9-
SECRET_KEY=QT4LOkwlMv66m5lN6j7z1gGOKpNsG5SWbB6p4PTAlLg2
9+
SECRET_KEY=QT4LOkwlMv66m5lN6j7z1gGOKpNsG5SWbB6p4PTAlLg2QT4LOkwlMv66m5lN6j7z1gGOKpNsG5SWbB6p4PTAlLg2
1010
POSTGRES_USER=netbox
1111
POSTGRES_PASSWORD=sajdhasdj213jh1ss
1212
POSTGRES_DB=netbox

netbox_qrcode/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class QRCodeConfig(PluginConfig):
3737
'b_terminations.device',
3838
'b_terminations'
3939
]
40+
},
41+
'location': {
42+
'text_fields': ['name']
4043
}
4144
}
4245

netbox_qrcode/template_content.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,11 @@ def left_page(self):
100100
return self.x_page()
101101

102102

103-
template_extensions = [DeviceQRCode, RackQRCode, CableQRCode]
103+
class LocationQRCode(QRCode):
104+
model = 'dcim.location'
105+
106+
def left_page(self):
107+
return self.x_page()
108+
109+
110+
template_extensions = [DeviceQRCode, RackQRCode, CableQRCode, LocationQRCode]

netbox_qrcode/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.9"
1+
__version__ = "0.0.10"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_version(rel_path):
3838
},
3939
install_requires=[
4040
'qrcode',
41-
'Pillow'
41+
'Pillow==9.5.0'
4242
],
4343
classifiers=[
4444
'Development Status :: 2 - Pre-Alpha',

0 commit comments

Comments
 (0)