mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Fix tests crash on SQLite without JSON1 extension. (#7409)
This commit is contained in:
		
							parent
							
								
									76232437d4
								
							
						
					
					
						commit
						4b06e0a5a1
					
				| 
						 | 
					@ -311,6 +311,9 @@ if postgres_fields:
 | 
				
			||||||
        """Model declaring a postgres JSONField"""
 | 
					        """Model declaring a postgres JSONField"""
 | 
				
			||||||
        data = postgres_fields.JSONField()
 | 
					        data = postgres_fields.JSONField()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        class Meta:
 | 
				
			||||||
 | 
					            required_db_features = {'supports_json_field'}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed')
 | 
					@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed')
 | 
				
			||||||
class TestNestedNonRelationalFieldWrite:
 | 
					class TestNestedNonRelationalFieldWrite:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user