-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d091b0f
commit 0eec75f
Showing
7 changed files
with
43 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
from django.utils.translation import ugettext_lazy as _ | ||
from django.urls import re_path | ||
from django.utils.translation import gettext_lazy as _ | ||
from oscar.core.application import OscarConfig | ||
|
||
|
||
class InvoicesConfig(OscarConfig): | ||
label = 'oscar_invoices' | ||
name = 'oscar_invoices' | ||
verbose_name = _('Invoices') | ||
|
||
default_permissions = ["is_staff"] | ||
|
||
def ready(self): | ||
from . import views | ||
self.invoice_view = views.InvoicePreviewView | ||
|
||
def get_urls(self): | ||
urlpatterns = [ | ||
re_path(r"invoice/(?P<pk>\d+)/", self.invoice_view.as_view(), | ||
name="invoice"), | ||
] | ||
return self.post_process_urls(urlpatterns) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
setup( | ||
name='django-oscar-invoices', | ||
version='0.2.1', | ||
version='0.2.2', | ||
url='https://github.com/django-oscar/django-oscar-invoices', | ||
author='Metaclass Team', | ||
author_email='[email protected]', | ||
|
@@ -17,19 +17,18 @@ | |
'Development Status :: 4 - Beta', | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
'Framework :: Django :: 2.0', | ||
'Framework :: Django :: 3.0', | ||
'Framework :: Django :: 4.0', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: Unix', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.9.18', | ||
], | ||
install_requires=[ | ||
'phonenumbers', | ||
'pillow', | ||
'django>=1.11', | ||
'django-oscar>=2.0', | ||
'django-phonenumber-field>=3.0.0', | ||
'django>=4.2.6', | ||
'django-oscar>=3.2.2', | ||
'django-phonenumber-field>=6.4.0', | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
[tox] | ||
envlist = | ||
py{36,37}-django{22,31} | ||
py{37,38}-django{31} | ||
py{39}-django{42} | ||
|
||
[testenv] | ||
commands = pytest {posargs} | ||
setenv = | ||
PYTHONPATH=. | ||
deps = | ||
django22: django>=2.2,<2.3 | ||
django31: django>=3.1,<3.2 | ||
pytest >= 3.6.0 | ||
pytest-django | ||
django-webtest>=1.9.3 | ||
django42: django>=4.2.6 | ||
pytest >= 7.4.4 | ||
pytest-django >= 4.7.0 | ||
django-webtest>=1.9.11 | ||
sorl-thumbnail | ||
psycopg2-binary>=2.7 | ||
psycopg2-binary>=2.9.9 | ||
mock |