Skip to content

Commit

Permalink
Merge branch 'master' into reorder-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier authored Aug 3, 2024
2 parents a7c3837 + aad28a8 commit 387eb21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
id: deps
run: |
sudo apt update
sudo apt-get -qq -y install sqlite3 gdal-bin
sudo apt -qq update
sudo apt -qq -y install sqlite3 gdal-bin
pip install -U pip wheel setuptools
pip install -U -r requirements-test.txt
pip install -U -e .
Expand Down
8 changes: 5 additions & 3 deletions openwisp_notifications/base/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ def __init__(self, *args, **kwargs):
if instance:
kwargs['initial'] = {
'web': instance.web_notification,
'email': instance.email_notification
if instance.web_notification
else instance.web_notification,
'email': (
instance.email_notification
if instance.web_notification
else instance.web_notification
),
}
super().__init__(*args, **kwargs)
try:
Expand Down

0 comments on commit 387eb21

Please sign in to comment.