mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.
Thanks Preston Timmons for review.
This commit is contained in:
parent
c920db1e57
commit
1ebd295082
6 changed files with 85 additions and 12 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import unittest
|
||||
|
||||
from forms_tests.widget_tests.base import WidgetTest
|
||||
|
||||
from django.db import connection
|
||||
from django.db.backends.signals import connection_created
|
||||
from django.test import TestCase
|
||||
from django.test import TestCase, modify_settings
|
||||
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests")
|
||||
|
|
@ -14,3 +16,10 @@ class PostgreSQLTestCase(TestCase):
|
|||
|
||||
connection_created.disconnect(register_hstore_handler)
|
||||
super().tearDownClass()
|
||||
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests")
|
||||
# To locate the widget's template.
|
||||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'})
|
||||
class PostgreSQLWidgetTestCase(WidgetTest):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue