mirror of
				https://github.com/enpaul/peewee-plus.git
				synced 2025-11-04 01:08:38 +00:00 
			
		
		
		
	Fix using dict constructor instead of literal in JSON field
This commit is contained in:
		@@ -254,8 +254,8 @@ class JSONField(peewee.TextField):
 | 
			
		||||
        **kwargs,
 | 
			
		||||
    ):
 | 
			
		||||
        super().__init__(*args, **kwargs)
 | 
			
		||||
        self.dump_params = dump_params or dict()
 | 
			
		||||
        self.load_params = load_params or dict()
 | 
			
		||||
        self.dump_params = dump_params or {}
 | 
			
		||||
        self.load_params = load_params or {}
 | 
			
		||||
 | 
			
		||||
    def db_value(self, value: Any) -> str:
 | 
			
		||||
        try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user