mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Removed some commented code in the forms Media class.
This commit is contained in:
		| @@ -44,10 +44,6 @@ class Media(object): | ||||
|         for name in MEDIA_TYPES: | ||||
|             getattr(self, 'add_' + name)(media_attrs.get(name, None)) | ||||
|  | ||||
|         # Any leftover attributes must be invalid. | ||||
|         # if media_attrs != {}: | ||||
|         #     raise TypeError("'class Media' has invalid attribute(s): %s" % ','.join(media_attrs.keys())) | ||||
|  | ||||
|     def __str__(self): | ||||
|         return self.render() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user