mirror of
https://github.com/django/django.git
synced 2025-10-05 00:00:37 +00:00
More attacking E302 violators
This commit is contained in:
parent
65c4ac3b24
commit
7548aa8ffd
150 changed files with 433 additions and 1 deletions
|
@ -25,6 +25,7 @@ DEFAULT_NAMES = ('verbose_name', 'verbose_name_plural', 'db_table', 'ordering',
|
|||
'index_together', 'app_cache', 'default_permissions',
|
||||
'select_on_save')
|
||||
|
||||
|
||||
def normalize_unique_together(unique_together):
|
||||
"""
|
||||
unique_together can be either a tuple of tuples, or a single
|
||||
|
@ -35,6 +36,7 @@ def normalize_unique_together(unique_together):
|
|||
unique_together = (unique_together,)
|
||||
return unique_together
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Options(object):
|
||||
def __init__(self, meta, app_label=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue