X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/6e28d2a2680de3290eaed5e90cc128d33fe27046..bf852b7e6f2828e0ef53440b69247e10b782e8cd:/contact/models.py diff --git a/contact/models.py b/contact/models.py index 37096ae..a97400f 100644 --- a/contact/models.py +++ b/contact/models.py @@ -10,7 +10,7 @@ from . import app_settings class Contact(models.Model): created_at = models.DateTimeField(_('submission date'), auto_now_add=True) - ip = models.IPAddressField(_('IP address'), default='127.0.0.1') + ip = models.GenericIPAddressField(_('IP address'), default='127.0.0.1') contact = models.CharField(_('contact'), max_length=128) form_tag = models.CharField(_('form'), max_length=32, db_index=True) body = JSONField(_('body'))