trivial: remove code to set "publik" as app label (now the default) (#72000)
This commit is contained in:
parent
14625ec634
commit
fd36f89b23
|
@ -260,13 +260,6 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
def _q_traverse(self, path):
|
||||
self.feed_substitution_parts()
|
||||
|
||||
# set app_label to Publik if none was specified (this is used in
|
||||
# backoffice header top line)
|
||||
if not get_publisher().get_site_option('app_label'):
|
||||
if not get_publisher().site_options.has_section('options'):
|
||||
get_publisher().site_options.add_section('options')
|
||||
get_publisher().site_options.set('options', 'app_label', 'Publik')
|
||||
|
||||
response = get_response()
|
||||
if not hasattr(response, 'filter'):
|
||||
response.filter = {}
|
||||
|
|
|
@ -80,6 +80,5 @@ def empty_siteoptions():
|
|||
def test_with_superuser():
|
||||
create_superuser()
|
||||
app = login(get_app(pub))
|
||||
resp = app.get('/backoffice/studio/')
|
||||
# this makes sure the extension loaded properly
|
||||
assert '<span id="applabel">Publik</span>' in resp.text
|
||||
resp = app.get('/backoffice/settings/texts/aq-home-page', status=200)
|
||||
|
|
Reference in New Issue