Skip to content

Commit

Permalink
Import FieldDoesNotExist from the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Oct 20, 2021
1 parent ecdedc3 commit a556194
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/nav/django/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

"""Utility methods for django used in NAV"""
from django.db.models.fields import FieldDoesNotExist
from django.core.exceptions import FieldDoesNotExist
from django.urls import reverse
from django.utils.http import urlencode

Expand Down
2 changes: 1 addition & 1 deletion python/nav/web/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from django.http import HttpResponse, JsonResponse
from django.db.models import Q
from django.db.models.fields.related import ManyToOneRel as _RelatedObject
from django.db.models.fields import FieldDoesNotExist
from django.core.exceptions import FieldDoesNotExist
import iso8601

from django_filters.rest_framework import DjangoFilterBackend, FilterSet
Expand Down
2 changes: 1 addition & 1 deletion python/nav/web/seeddb/utils/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from django.db.models import Model
from django.shortcuts import render
from django.db.models.fields import FieldDoesNotExist
from django.core.exceptions import FieldDoesNotExist
from django.urls import reverse
from six import iteritems

Expand Down

0 comments on commit a556194

Please sign in to comment.