This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
17 lines
487 B
Python
17 lines
487 B
Python
"""
|
|
Discount API URLs
|
|
"""
|
|
|
|
|
|
from django.conf import settings
|
|
from django.conf.urls import url
|
|
|
|
from .views import CourseUserDiscount, CourseUserDiscountWithUserParam
|
|
|
|
urlpatterns = [
|
|
url(r'^course/{}'.format(settings.COURSE_KEY_PATTERN), CourseUserDiscount.as_view(), name='course_user_discount'),
|
|
url(r'^user/(?P<user_id>[^/]*)/course/{}'.format(settings.COURSE_KEY_PATTERN),
|
|
CourseUserDiscountWithUserParam.as_view(),
|
|
name='course_user_discount_with_param'),
|
|
]
|