Skip to content

Commit

Permalink
Allow longer paths for the File path (#4111)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno authored Oct 6, 2024
1 parent 24c00f8 commit 2cf978d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions backend/files_upload/migrations/0009_alter_file_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 5.1.1 on 2024-10-06 22:48

import files_upload.models
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('files_upload', '0008_alter_file_type'),
]

operations = [
migrations.AlterField(
model_name='file',
name='file',
field=models.FileField(max_length=1024, upload_to=files_upload.models.get_upload_to_from_instance, verbose_name='File'),
),
]
1 change: 1 addition & 0 deletions backend/files_upload/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Type(models.TextChoices):
upload_to=get_upload_to_from_instance,
null=False,
blank=False,
max_length=1024,
)
uploaded_by = models.ForeignKey(
"users.User",
Expand Down

0 comments on commit 2cf978d

Please sign in to comment.