From cdb6507232067c009cbfd52dbe5507aef81dbbcf Mon Sep 17 00:00:00 2001 From: tonjo Date: Wed, 6 Nov 2013 17:19:19 +0100 Subject: [PATCH 1/3] Fix cypher.py typo --- neo4django/db/models/cypher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo4django/db/models/cypher.py b/neo4django/db/models/cypher.py index c05a1fb..b6922c5 100644 --- a/neo4django/db/models/cypher.py +++ b/neo4django/db/models/cypher.py @@ -212,7 +212,7 @@ def __init__(self, expression, negate=False): def get_params(self): return { - 'expr': unicode(self.expression), + 'expr':unicode(self.expression), 'desc':'DESC' if self.negate else '' } From dfc40a02ad8fbcbdfa03409ecc7de656e4e7fc6e Mon Sep 17 00:00:00 2001 From: tonjo Date: Wed, 6 Nov 2013 17:53:21 +0100 Subject: [PATCH 2/3] Reverted to previous, Pirhoo patch --- neo4django/db/models/cypher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo4django/db/models/cypher.py b/neo4django/db/models/cypher.py index b6922c5..c05a1fb 100644 --- a/neo4django/db/models/cypher.py +++ b/neo4django/db/models/cypher.py @@ -212,7 +212,7 @@ def __init__(self, expression, negate=False): def get_params(self): return { - 'expr':unicode(self.expression), + 'expr': unicode(self.expression), 'desc':'DESC' if self.negate else '' } From 9058c0b6f4eb9d23c2a87044f0661f8178b80b12 Mon Sep 17 00:00:00 2001 From: tonjo Date: Wed, 6 Nov 2013 17:59:10 +0100 Subject: [PATCH 3/3] Various fixes --- neo4django/graph_auth/backends.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/neo4django/graph_auth/backends.py b/neo4django/graph_auth/backends.py index fdf4f42..956f248 100644 --- a/neo4django/graph_auth/backends.py +++ b/neo4django/graph_auth/backends.py @@ -13,7 +13,6 @@ class NodeModelBackend(object): supports_inactive_user = False def authenticate(self, username=None, password=None): - UserModel = get_user_model() try: user = UserModel.objects.get(username=username) if user is not None and user.check_password(password): @@ -22,7 +21,6 @@ def authenticate(self, username=None, password=None): pass def get_user(self, user_id): - UserModel = get_user_model() try: return UserModel.objects.get(id=user_id) except UserModel.DoesNotExist: