Selaa lähdekoodia

Small bugfixes

Marcos Dumay de Medeiros 9 vuotta sitten
vanhempi
commit
dda675f396
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 1 0
      src/rapid/rapidforms.py
  2. 2 1
      src/rapid/urls.py

+ 1 - 0
src/rapid/rapidforms.py

@@ -53,6 +53,7 @@ class RapidAlternativesField(forms.Field):
 
 
 def for_model(request, model, default_relations=()):
+    default_relations = list(default_relations)
     default_relations_request = request.GET.get('default')
     widgets = []
     default_relations_fields = []

+ 2 - 1
src/rapid/urls.py

@@ -13,7 +13,8 @@ from rapid import permissions
 
 
 def _can_manage_users(request):
-    if not request.user.is_authenticated:
+    import pdb; pdb.set_trace()
+    if not request.user.is_authenticated():
         return []
     p = []
     for a in request.user.managed_applications.all():