Skip to content

Commit

Permalink
Merge pull request #53 from k01ek/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
k01ek authored Aug 29, 2023
2 parents f86acd0 + b5d3270 commit 50f3a23
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pub-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python 3.7
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PYTHON_VER?=3.8
NETBOX_VER?=v3.2.9
NETBOX_VER?=v3.5.0

NAME=netbox-qrcode

Expand Down
3 changes: 0 additions & 3 deletions develop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ RUN git clone --single-branch --branch ${netbox_ver} https://github.com/netbox-c
cd /opt/netbox/ && \
pip install -r /opt/netbox/requirements.txt

# Work around https://github.com/rq/django-rq/issues/421
RUN pip install django-rq==2.3.2

# -------------------------------------------------------------------------------------
# Install Netbox Plugin
# -------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion develop/dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PGPASSWORD=sajdhasdj213jh1ss
DB_HOST=postgres
NAPALM_TIMEOUT=5
MAX_PAGE_SIZE=0
SECRET_KEY=QT4LOkwlMv66m5lN6j7z1gGOKpNsG5SWbB6p4PTAlLg2
SECRET_KEY=QT4LOkwlMv66m5lN6j7z1gGOKpNsG5SWbB6p4PTAlLg2QT4LOkwlMv66m5lN6j7z1gGOKpNsG5SWbB6p4PTAlLg2
POSTGRES_USER=netbox
POSTGRES_PASSWORD=sajdhasdj213jh1ss
POSTGRES_DB=netbox
Expand Down
3 changes: 3 additions & 0 deletions netbox_qrcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class QRCodeConfig(PluginConfig):
'b_terminations.device',
'b_terminations'
]
},
'location': {
'text_fields': ['name']
}
}

Expand Down
9 changes: 8 additions & 1 deletion netbox_qrcode/template_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,11 @@ def left_page(self):
return self.x_page()


template_extensions = [DeviceQRCode, RackQRCode, CableQRCode]
class LocationQRCode(QRCode):
model = 'dcim.location'

def left_page(self):
return self.x_page()


template_extensions = [DeviceQRCode, RackQRCode, CableQRCode, LocationQRCode]
2 changes: 1 addition & 1 deletion netbox_qrcode/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.9"
__version__ = "0.0.10"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_version(rel_path):
},
install_requires=[
'qrcode',
'Pillow'
'Pillow==9.5.0'
],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
Expand Down

0 comments on commit 50f3a23

Please sign in to comment.