File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def check_field(model, field_name: str) -> None:
1111 try :
1212 model ._meta .get_field (field_name )
1313 except Exception as e :
14- raise ValueError (f"Column { field_name !r} does not exist in " f" model" ) from e
14+ raise ValueError (f"Column { field_name !r} does not exist in model" ) from e
1515
1616
1717class DatabaseSchemaEditor (BaseDatabaseSchemaEditor ):
@@ -119,9 +119,7 @@ def table_sql(self, model) -> tuple:
119119 sql [0 ] += f" CLUSTERED BY ({ clustered_by } )"
120120
121121 if clustered_by and number_of_shards :
122- sql [0 ] += (
123- f" CLUSTERED BY ({ clustered_by } ) INTO { number_of_shards } " f"shards"
124- )
122+ sql [0 ] += f" CLUSTERED BY ({ clustered_by } ) INTO { number_of_shards } shards"
125123
126124 if not clustered_by and number_of_shards :
127125 sql [0 ] += f" CLUSTERED INTO ({ number_of_shards } )"
You can’t perform that action at this time.
0 commit comments