chore(api): use named argument for on_delete
This commit is contained in:
parent
7ff59e272c
commit
1e83a91b5e
12 changed files with 134 additions and 39 deletions
|
@ -5,7 +5,11 @@ class CloudFile(models.Model):
|
|||
storage_backend = models.CharField(max_length=512)
|
||||
resource_id = models.TextField()
|
||||
filename = models.ForeignKey(
|
||||
"File", models.DO_NOTHING, blank=True, null=True, db_column="cc_file_id"
|
||||
"File",
|
||||
on_delete=models.DO_NOTHING,
|
||||
blank=True,
|
||||
null=True,
|
||||
db_column="cc_file_id",
|
||||
)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue