from django.urls import path
from django.utils.translation import gettext_lazy as _

from oscar.core.application import OscarConfig
from oscar.core.loading import get_class


class OfferConfig(OscarConfig):
    label = "offer"
    name = "oscar.apps.offer"
    verbose_name = _("Offer")

    namespace = "offer"

    # pylint: disable=attribute-defined-outside-init, W0611, W0201
    def ready(self):
        from . import receivers

        self.detail_view = get_class("offer.views", "OfferDetailView")
        self.list_view = get_class("offer.views", "OfferListView")

    def get_urls(self):
        urls = [
            path("", self.list_view.as_view(), name="list"),
            path("<slug:slug>/", self.detail_view.as_view(), name="detail"),
        ]
        return self.post_process_urls(urls)

82fc00420aa7cd1cda3dd8ce649d24aee87a9281
<mask token>


class OfferConfig(OscarConfig):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def get_urls(self):
        urls = [path('', self.list_view.as_view(), name='list'), path(
            '<slug:slug>/', self.detail_view.as_view(), name='detail')]
        return self.post_process_urls(urls)

<mask token>


class OfferConfig(OscarConfig):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def ready(self):
        from . import receivers
        self.detail_view = get_class('offer.views', 'OfferDetailView')
        self.list_view = get_class('offer.views', 'OfferListView')

    def get_urls(self):
        urls = [path('', self.list_view.as_view(), name='list'), path(
            '<slug:slug>/', self.detail_view.as_view(), name='detail')]
        return self.post_process_urls(urls)

<mask token>


class OfferConfig(OscarConfig):
    label = 'offer'
    name = 'oscar.apps.offer'
    verbose_name = _('Offer')
    namespace = 'offer'

    def ready(self):
        from . import receivers
        self.detail_view = get_class('offer.views', 'OfferDetailView')
        self.list_view = get_class('offer.views', 'OfferListView')

    def get_urls(self):
        urls = [path('', self.list_view.as_view(), name='list'), path(
            '<slug:slug>/', self.detail_view.as_view(), name='detail')]
        return self.post_process_urls(urls)

from django.urls import path
from django.utils.translation import gettext_lazy as _
from oscar.core.application import OscarConfig
from oscar.core.loading import get_class


class OfferConfig(OscarConfig):
    label = 'offer'
    name = 'oscar.apps.offer'
    verbose_name = _('Offer')
    namespace = 'offer'

    def ready(self):
        from . import receivers
        self.detail_view = get_class('offer.views', 'OfferDetailView')
        self.list_view = get_class('offer.views', 'OfferListView')

    def get_urls(self):
        urls = [path('', self.list_view.as_view(), name='list'), path(
            '<slug:slug>/', self.detail_view.as_view(), name='detail')]
        return self.post_process_urls(urls)

from django.urls import path
from django.utils.translation import gettext_lazy as _

from oscar.core.application import OscarConfig
from oscar.core.loading import get_class


class OfferConfig(OscarConfig):
    label = "offer"
    name = "oscar.apps.offer"
    verbose_name = _("Offer")

    namespace = "offer"

    # pylint: disable=attribute-defined-outside-init, W0611, W0201
    def ready(self):
        from . import receivers

        self.detail_view = get_class("offer.views", "OfferDetailView")
        self.list_view = get_class("offer.views", "OfferListView")

    def get_urls(self):
        urls = [
            path("", self.list_view.as_view(), name="list"),
            path("<slug:slug>/", self.detail_view.as_view(), name="detail"),
        ]
        return self.post_process_urls(urls)
