Explorar o código

[desktop] Try to fix check config tests by getting the confvar name the old way

Erick Tryzelaar %!s(int64=10) %!d(string=hai) anos
pai
achega
f8ab289c78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/views.py

+ 1 - 1
desktop/core/src/desktop/views.py

@@ -433,7 +433,7 @@ def _get_config_errors(request, cache=True):
       try:
         for confvar, error in validator(request.user):
           error = {
-            'name': confvar.get_fully_qualifying_key() if isinstance(confvar, BoundConfig) else confvar,
+            'name': confvar if isinstance(confvar, str) else confvar.get_fully_qualifying_key(),
             'message': error,
           }