More attacking E302 violators

This commit is contained in:
Alex Gaynor 2013-11-02 13:12:09 -07:00
parent 65c4ac3b24
commit 7548aa8ffd
150 changed files with 433 additions and 1 deletions

View file

@ -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):