Skip to content

Commit

Permalink
fix: Add django 4.2 support (#193)
Browse files Browse the repository at this point in the history
* fix: Add django 4.2 support
  • Loading branch information
salman2013 authored Sep 20, 2023
1 parent ce6267f commit a720021
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [django32, django40]
toxenv: [django32, django42]
steps:
- uses: actions/checkout@v1
- name: setup python
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ def is_requirement(line):
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.2',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks',
Expand Down
Binary file removed testproject/testproject/db/prepopulated.db
Binary file not shown.
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist = py38-django{32,40}
envlist = py38-django{32, 42}

[testenv]
deps =
deps =
django32: -r requirements/django.txt
django40: django>4.0,<4.1
-r{toxinidir}/requirements/test.txt
changedir={toxinidir}/testproject/
commands =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
changedir = {toxinidir}/testproject/
commands =
pytest --cov wiki --cov django_notify

4 changes: 3 additions & 1 deletion wiki/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ class URLPathAdmin(MPTTModelAdmin):
'articles__article__modified')
list_display = ('__unicode__', 'article', 'get_created')

@admin.display(
description=_('created')
)
def get_created(self, instance):
return instance.article.created
get_created.short_description = _('created')


admin.site.register(models.URLPath, URLPathAdmin)
Expand Down
1 change: 1 addition & 0 deletions wiki/plugins/attachments/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit a720021

Please sign in to comment.