Commit 2d8b0a0c authored by Elena Grandi's avatar Elena Grandi
Browse files

Initial changes for compatibility with django 2

parent a6859d5b
Pipeline #105 failed with stage
in 2 minutes and 23 seconds
# coding: utf-8
from django.apps import AppConfig
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from octonet.mixins import OctonetAppMixin
......
# coding: utf-8
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import SimpleTestCase
import octofuss
from octonet import backend
......
from django.conf.urls import url
from . import views
app_name = "asterisk"
urlpatterns = [
url(r"^$", views.List.as_view(), name="list"),
url(r"^edit/(?P<name>[^/]+)$", views.Edit.as_view(), name="edit"),
......
......@@ -3,7 +3,7 @@ from django import forms
from django.views.generic import View
from django.views.generic.edit import FormView
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.shortcuts import redirect
from octonet.mixins import OctonetMixin
from octonet.forms import FormControlClassMixin
......
# coding: utf-8
from django.apps import AppConfig
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from octonet.mixins import OctonetAppMixin
......
# coding: utf-8
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import SimpleTestCase
import octofuss
from octonet import backend
......
from django.conf.urls import url
from . import views
app_name = "auth"
urlpatterns = [
url(r"^$", views.List.as_view(), name="list"),
url(r"^edit/(?P<user>[^/]+)$", views.Edit.as_view(), name="edit"),
......
from django import forms
from django.views.generic import TemplateView
from django.views.generic.edit import FormView
from django.core.urlresolvers import reverse
from django.urls import reverse
from octonet.mixins import OctonetMixin
from octonet.forms import FormControlClassMixin
......
# coding: utf-8
from django.apps import AppConfig
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from octonet.mixins import OctonetAppMixin
......
# coding: utf-8
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import SimpleTestCase
from octonet import backend
from octonet.unittest import TestBase
......
......@@ -4,6 +4,7 @@ from django.views.generic.base import RedirectView
from . import views
app_name = "dansguardian"
urlpatterns = [
url(r'^$', RedirectView.as_view(pattern_name='dansguardian:edit', permanent=True), name='home'),
url(r"^edit/(?P<page>[^/]+)?$", views.Edit.as_view(), name="edit"),
......
octonet (10.0.5-1) UNRELEASED; urgency=medium
* Support for django 2.
-- Elena Grandi <valhalla@debian.org> Thu, 26 Aug 2021 11:10:53 +0200
octonet (10.0.4-1) buster; urgency=medium
* Upload to buster
......
# coding: utf-8
from django.apps import AppConfig
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from octonet.mixins import OctonetAppMixin
......
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import SimpleTestCase
import octofuss
from octonet import backend
......
from django.conf.urls import url
from . import views
app_name = "dhcp"
urlpatterns = [
url(r"^$", views.List.as_view(), name="list"),
# refs #244
......
# coding: utf-8
from django.contrib import messages
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.shortcuts import redirect
from django.utils.translation import ugettext_lazy as _
from django.views.generic import TemplateView, FormView, View
......
# coding: utf-8
from django.apps import AppConfig
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from octonet.mixins import OctonetAppMixin
......
# coding: utf-8
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.test import SimpleTestCase
import octofuss
from octonet import backend
......
......@@ -2,6 +2,7 @@ from django.conf.urls import url
from django.views.generic.base import RedirectView
from . import views
app_name = "firewall"
urlpatterns = [
url(r'^$', RedirectView.as_view(pattern_name='firewall:edit', permanent=True), name='home'),
url(r"^edit/(?P<page>[^/]+)?$", views.Edit.as_view(), name="edit"),
......
# coding: utf-8
from django.apps import AppConfig
from django.core.urlresolvers import reverse_lazy
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from octonet.mixins import OctonetAppMixin
from django.conf import settings
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment