Limit access to files to user
No database migration is made
This commit is contained in:
parent
de06312a2a
commit
06704aaa77
7 changed files with 48 additions and 35 deletions
|
@ -19,7 +19,7 @@ class Migration(migrations.Migration):
|
|||
name="file",
|
||||
field=models.FileField(
|
||||
max_length=128,
|
||||
upload_to=main.models.invoice_path,
|
||||
upload_to=main.models.get_path,
|
||||
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
|
||||
verbose_name="Fichier",
|
||||
),
|
||||
|
@ -40,7 +40,7 @@ class Migration(migrations.Migration):
|
|||
blank=True,
|
||||
default="",
|
||||
max_length=256,
|
||||
upload_to=main.models.snapshot_path,
|
||||
upload_to=main.models.get_path,
|
||||
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
|
||||
verbose_name="Fichier",
|
||||
),
|
||||
|
|
|
@ -118,7 +118,7 @@ class Migration(migrations.Migration):
|
|||
name="file",
|
||||
field=models.FileField(
|
||||
max_length=128,
|
||||
upload_to=main.models.invoice_path,
|
||||
upload_to=main.models.get_path,
|
||||
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
|
||||
verbose_name="File",
|
||||
),
|
||||
|
@ -174,7 +174,7 @@ class Migration(migrations.Migration):
|
|||
blank=True,
|
||||
default="",
|
||||
max_length=256,
|
||||
upload_to=main.models.snapshot_path,
|
||||
upload_to=main.models.get_path,
|
||||
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
|
||||
verbose_name="File",
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue