Add file migration
This commit is contained in:
parent
06704aaa77
commit
2550c52a61
2 changed files with 64 additions and 1 deletions
|
@ -34,7 +34,7 @@ class CustomModel(UserModel):
|
|||
def get_path(instance, filename):
|
||||
return pathlib.Path(
|
||||
"user",
|
||||
str(instance.user.get_username()),
|
||||
str(instance.user.username),
|
||||
instance._meta.model_name,
|
||||
str(instance.pk),
|
||||
).with_suffix(".pdf")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue