Skip to content

Fix languagepicker #95

Merged
merged 9 commits into from
Sep 16, 2020
Merged

Fix languagepicker #95

merged 9 commits into from
Sep 16, 2020

Conversation

donald
Copy link
Member

@donald donald commented Sep 16, 2020

  • all languages should again be enabled by default on the edit pages
  • Some very minor changes

Fix all code style issues signaled by

    flake8 mpicms/
Remove call to register_admin_urls, because it seems redundant.
mpicms.users.urls is also included via config.urlpatterns.
The app namespace wagtailusers_users is already taken by the unmodified
wagtail admin app. So we get a warning

    ?: (urls.W005) URL namespace 'wagtailusers_users' isn't unique. You may not be able to reverse all URLs in this namespace

on startup. Our modified users app doesn't need to use the same app
namespace. Even if a template uses wagtailusrs_users:something, it would
resolve to a url which we mapped.
Change from django.defaults.page_not_found view with complicated
semantics to raise django.http.Http404.
It doesn't seem necessary to register wagtail.users.views.index, because
it is already there. So don't do it.
* lint:
  users; Remove index view
  users: Simplify masking of disabled functions
  users: Change app namespace
  users: Remove wagtail_hooks
  Apply code style fixes
Use branch add-toggle-configure from our clone of
wagtail-modeltranslation until its PR [1] is decided.

[1] https://github.com/infoportugal/wagtail-modeltranslation/pull/301
    Update python requirements with

        (cd requirements;  make)

    The virtual environment can be update to the specified versions with

        pip-sync requirements/dev.txt
@donald donald merged commit d546c44 into master Sep 16, 2020
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant