Skip to content

Commit ecf62d8

Browse files
committed
fix pylint errors
1 parent 3a41f04 commit ecf62d8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

postgres_composite_types/forms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
import logging
3737
from collections import OrderedDict
3838

39-
from django import VERSION
40-
from django import forms
39+
from django import VERSION, forms
4140
from django.contrib.postgres.utils import prefix_validation_error
4241
from django.utils.translation import ugettext as _
4342

tests/test_forms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ def test_null_initial_data(self):
123123
str(form['simple_field']))
124124

125125
def test_value_omission_check_inside_widget(self):
126+
"""
127+
Assert that CompositeTypeWidget.value_omitted_from_data function
128+
will return False when passing valid data.
129+
"""
126130
form = self.SimpleForm()
127131
widget = form.fields['simple_field'].widget
128132
self.assertFalse(

0 commit comments

Comments
 (0)