Browse Source

From GIST

adamcik 15 years ago
parent
commit
493a50f4c8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      manager.py

+ 2 - 0
manager.py

@@ -28,6 +28,8 @@ class IPWhere(sql.where.WhereNode):
         return super(IPWhere, self).make_atom(child, qn)
 
 class IPManger(models.Manager):
+    use_for_related_fields = True
+
     def get_query_set(self):
         q = IPQuery(self.model, connection, IPWhere)
         return query.QuerySet(self.model, q)