Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/v/o/vosae-app-HEAD/www/core/models/tenant.py   vosae-app(Download)
 
from core.fields import SlugField
from core.exceptions import ReservedTenantSlug
from core.models.embedded.report_settings import ReportSettings
from core.mixins import AsyncTTLUploadsMixin
def check_reserved_slug(slug):
    from urls import urlpatterns
    if slug in get_reserved_urlroot(urlpatterns):
        raise ReservedTenantSlug()
    return True