You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi
I have a idea CommaSeparatedIpField, it possible ?
this for validacion IP ACL list in FreeSWITCH.
ludovic coues
unread,
Aug 31, 2016, 4:47:09 AM8/31/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
If you are asking if it is possible to create such field, the response
is yes, you can create such field.
Looking at the source of CommaSeparatedIntegerField, you can see it's
a simple CharField with a validate_comma_separated_integer_list
validator and a custom error message.
You could also have an IPAdress model and a manytomany field in the
model in place of CommaSeparatedIpField. As an added bonus, the
IPAddress model could have extra field like a description for the ip.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hello,
although it is possible, I'd go with an IP field and generate a list of them, comma separated, at run time. This will make it easier to search and manage the list.