mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							d59f1993f1
						
					
				
				
					commit
					b2b763448f
				
			| @@ -99,7 +99,7 @@ class Origin(object): | ||||
|         self.name = name | ||||
|  | ||||
|     def reload(self): | ||||
|         raise NotImplementedError | ||||
|         raise NotImplementedError('subclasses of Origin must provide a reload() method') | ||||
|  | ||||
|     def __str__(self): | ||||
|         return self.name | ||||
| @@ -385,7 +385,7 @@ class TokenParser(object): | ||||
|         """ | ||||
|         Overload this method to do the actual parsing and return the result. | ||||
|         """ | ||||
|         raise NotImplementedError() | ||||
|         raise NotImplementedError('subclasses of Tokenparser must provide a top() method') | ||||
|  | ||||
|     def more(self): | ||||
|         """ | ||||
|   | ||||
| @@ -61,7 +61,7 @@ class BaseLoader(object): | ||||
|         name. | ||||
|  | ||||
|         """ | ||||
|         raise NotImplementedError | ||||
|         raise NotImplementedError('subclasses of BaseLoader must provide a load_template_source() method') | ||||
|  | ||||
|     def reset(self): | ||||
|         """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user