mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
This commit is contained in:
committed by
Tim Graham
parent
0ec4dc91e0
commit
8838d4dd49
@@ -1819,9 +1819,9 @@ class SchemaTests(TransactionTestCase):
|
||||
"""
|
||||
#23065 - Constraint names must be quoted if they contain capital letters.
|
||||
"""
|
||||
def get_field(*args, **kwargs):
|
||||
def get_field(*args, field_class=IntegerField, **kwargs):
|
||||
kwargs['db_column'] = "CamelCase"
|
||||
field = kwargs.pop('field_class', IntegerField)(*args, **kwargs)
|
||||
field = field_class(*args, **kwargs)
|
||||
field.set_attributes_from_name("CamelCase")
|
||||
return field
|
||||
|
||||
|
||||
Reference in New Issue
Block a user