mirror of
				https://github.com/SectorLabs/django-localized-fields.git
				synced 2025-10-31 10:48:56 +03:00 
			
		
		
		
	Raise IntegrityError if it's not about the slug
This commit is contained in:
		| @@ -56,7 +56,9 @@ class LocalizedModel(models.Model): | ||||
|                 # field class... we can also not only catch exceptions | ||||
|                 # that apply to slug fields... so yea.. this is as | ||||
|                 # retarded as it gets... i am sorry :( | ||||
|                 if 'slug' in str(ex): | ||||
|                 if 'slug' not in str(ex): | ||||
|                     raise ex | ||||
|  | ||||
|                 if self.retries >= max_retries: | ||||
|                     raise ex | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user