Ver Fonte

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

Erick Tryzelaar há 10 anos atrás
pai
commit
f8ab289c78
1 ficheiros alterados com 1 adições e 1 exclusões
  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,
           }