Skip to content

Commit 1b1cb2f

Browse files
committed
Fix missing import noticed by Ryan Cross
- Legacy-Id: 3916
1 parent 9467d53 commit 1b1cb2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/timedeltafield.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import datetime
99

1010
# Django
11+
import django
1112
from django import forms
1213
from django.db import models
1314
from django.utils.safestring import mark_safe
@@ -37,7 +38,7 @@ def to_python(self, value):
3738
# else try to convert to int (e.g. from string)
3839
value = int(value)
3940
except (TypeError, ValueError):
40-
raise exceptions.ValidationError(
41+
raise django.core.exceptions.ValidationError(
4142
_("This value must be an integer or a datetime.timedelta."))
4243

4344
return datetime.timedelta(seconds=value)

0 commit comments

Comments
 (0)