Browse Source

fix(api): updated to meet new django API

Nils Wisiol 8 years ago
parent
commit
aa83935ffd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/desecapi/views.py

+ 1 - 1
api/desecapi/views.py

@@ -154,7 +154,7 @@ class DynDNS12Update(APIView):
 
 
             # 5. only domain associated with this user account
             # 5. only domain associated with this user account
             if len(request.user.domains.all()) == 1:
             if len(request.user.domains.all()) == 1:
-                return request.user.domains[0].name
+                return request.user.domains.all()[0].name
 
 
             return None
             return None