divio/django-cms

View on GitHub

Showing 579 of 869 total issues

Avoid too many return statements within this function.
Open

        return redirect_to_login(quote(request.get_full_path()), settings.LOGIN_URL)
Severity: Major
Found in cms/views.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return render_page(request, page, current_language=request_language, slug=slug)
    Severity: Major
    Found in cms/views.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return title.slug
      Severity: Major
      Found in cms/models/pagemodel.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return False
        Severity: Major
        Found in cms/models/titlemodels.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return has_perm
          Severity: Major
          Found in cms/utils/page_permissions.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return has_perm
            Severity: Major
            Found in cms/utils/permissions.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return HttpResponseRedirect(page_path)
              Severity: Major
              Found in cms/views.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return True
                Severity: Major
                Found in cms/utils/page_permissions.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return self.cleaned_data
                  Severity: Major
                  Found in cms/admin/forms.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return has_global_permission(user, site, action='view_page')
                    Severity: Major
                    Found in cms/utils/page_permissions.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return data
                      Severity: Major
                      Found in cms/admin/forms.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return language_code
                        Severity: Major
                        Found in cms/utils/i18n.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return True
                          Severity: Major
                          Found in cms/utils/page_permissions.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return _handle_no_page(request)
                            Severity: Major
                            Found in cms/views.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return self.default(o)
                              Severity: Major
                              Found in cms/utils/encoder.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return HttpResponseRedirect(redirect_url)
                                Severity: Major
                                Found in cms/views.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return False
                                  Severity: Major
                                  Found in cms/utils/page_permissions.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return render_object_structure(request, page)
                                    Severity: Major
                                    Found in cms/views.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return '/%s/' % lang if settings.USE_I18N else '/'
                                      Severity: Major
                                      Found in menus/utils.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                        return HttpResponseBadRequest("You do not have enough permission to alias this placeholder.")
                                        Severity: Major
                                        Found in cms/cms_plugins.py - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language