diff --git a/api/urls.py b/api/urls.py index 4322651e..ec34a6a9 100644 --- a/api/urls.py +++ b/api/urls.py @@ -40,7 +40,7 @@ urlpatterns = [ url(r"^onix/(?P.*)/$", OnixView.as_view(), name="onix"), url(r"^onix/$", OnixView.as_view(), name="onix_all"), url(r'^id/work/(?P\w+)/$', negotiate_content, name="work_identifier"), - url(r'^loader/yaml$',load_yaml, name="load_yaml"), - url(r'^travisci/webhook$',travisci_webhook, name="travisci_webhook"), + url(r'^loader/yaml$', load_yaml, name="load_yaml"), + url(r'^travisci/webhook$', travisci_webhook, name="travisci_webhook"), url(r'^', include(v1_api.urls)), ] diff --git a/libraryauth/models.py b/libraryauth/models.py index e253fc47..527c2a82 100644 --- a/libraryauth/models.py +++ b/libraryauth/models.py @@ -8,7 +8,7 @@ from django.core import validators from django.db import models from django.db.models import Q from django.db.models.signals import post_save -from django.forms import IPAddressField as BaseIPAddressField +from django.forms import GenericIPAddressField as BaseIPAddressField from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse