mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Upgrade to Django 3.2 (#2056)
This commit is contained in:
@@ -32,19 +32,10 @@
|
||||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under the License.
|
||||
|
||||
from django.apps import AppConfig
|
||||
from django.urls import URLPattern
|
||||
from django.urls.resolvers import RegexPattern
|
||||
|
||||
|
||||
class PretixMultidomainConfig(AppConfig):
|
||||
name = 'pretix.multidomain'
|
||||
label = 'pretixmultidomain'
|
||||
|
||||
|
||||
default_app_config = 'pretix.multidomain.PretixMultidomainConfig'
|
||||
|
||||
|
||||
def event_url(route, view, name=None, require_live=True):
|
||||
if callable(view):
|
||||
pattern = RegexPattern(route, name=name, is_endpoint=True)
|
||||
|
||||
Reference in New Issue
Block a user