Removed double pop from meta_attrs.

This commit is contained in:
Jon Dufresne 2015-03-20 17:33:23 -07:00 committed by Tim Graham
parent 2444c231e1
commit e304e13448
1 changed files with 2 additions and 5 deletions

View File

@ -226,11 +226,8 @@ class Options(object):
setattr(self, attr_name, getattr(self.meta, attr_name))
self.original_attrs[attr_name] = getattr(self, attr_name)
ut = meta_attrs.pop('unique_together', self.unique_together)
self.unique_together = normalize_together(ut)
it = meta_attrs.pop('index_together', self.index_together)
self.index_together = normalize_together(it)
self.unique_together = normalize_together(self.unique_together)
self.index_together = normalize_together(self.index_together)
# verbose_name_plural is a special case because it uses a 's'
# by default.