File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- Django PostgreSQL Netfilters
2
- ============================
1
+ Django PostgreSQL Netfields
2
+ ===========================
3
3
4
4
This project is an attempt at making proper Django net related fields for Django
5
5
Currently the built in IPAddressField does not support IPv6 and uses an inefficient
@@ -19,13 +19,13 @@ version used by the related project that initiated this effort.
19
19
Getting started
20
20
---------------
21
21
22
- Make sure netfields is in your PYTHONPATH, then simply use the following:
22
+ Make sure netfields is in your PYTHONPATH, then simply use the following::
23
23
24
24
from netfields import InetAddressField, NetManager
25
25
26
26
class Example(models.Model):
27
27
inet = InetAddressField()
28
- ...
28
+ # ...
29
29
30
30
objects = NetManager()
31
31
@@ -36,10 +36,10 @@ All lookups are case-insensitive and text based lookups are avoided whenever
36
36
possible. In addition to Django's default lookup types the following have been
37
37
added.
38
38
39
- __net_contained
40
- __net_contained_or_equal
41
- __net_contains
42
- __net_contains_or_equals
39
+ * __net_contained
40
+ * __net_contained_or_equal
41
+ * __net_contains
42
+ * __net_contains_or_equals
43
43
44
44
These correspond with the operators from
45
45
http://www.postgresql.org/docs/8.3/interactive/functions-net.html
You can’t perform that action at this time.
0 commit comments