Ticket #10293: m2m_raw_id_field_improvement.patch
File m2m_raw_id_field_improvement.patch, 553 bytes (added by , 16 years ago) |
---|
-
widgets.py
old new 169 169 return self.base_url_parameters() 170 170 171 171 def label_for_value(self, value): 172 value = [int(v) for v in value.split(',')] 173 objs = self.rel.to._default_manager.filter(pk__in=value) 174 return ' <strong>%s</strong>' % ', '.join(truncate_words(obj, 14) for obj in objs) 172 return '' 175 173 176 174 def value_from_datadict(self, data, files, name): 177 175 value = data.get(name, None)