Opened 19 years ago
Last modified 15 years ago
#2616 closed enhancement
additional database api — at Initial Version
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | no | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
please add an additional key word for querysets when searching with the inet datatype..
and example would be 
assume a table constructed as follows. 
create table network_interfaces(
id serial,
ip inet,
interface char(20)
)
--The SQL Syntax ---
SELECT * from network_interface where ip << '10.210.0.0/16';
--possible Django syntax ---
Interfaces.objects.filter(ip_within='10.210.0.0/16')
Thanks.  Django is a great project.
  Note:
 See   TracTickets
 for help on using tickets.