Skip to content

Commit a34947a

Browse files
author
Łukasz Sitko
committed
update attachment's max_length
1 parent 8a55156 commit a34947a

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Assumptions
1616
Changelog
1717
=========
1818

19+
1.1.16
20+
------
21+
* change max_length from 100 to 255 in email attachments - https://github.com/deployed/django-emailtemplates/pull/38
22+
1923
1.1.15
2024
------
2125
* ordering in email template & default subject from registry - https://github.com/deployed/django-emailtemplates/pull/37
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated by Django 3.1.13 on 2022-11-03 14:06
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("emailtemplates", "0011_auto_20221026_0953"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="emailattachment",
15+
name="attachment_file",
16+
field=models.FileField(
17+
max_length=255,
18+
upload_to="emails/attachments/",
19+
verbose_name="Attachment file",
20+
),
21+
),
22+
migrations.AlterField(
23+
model_name="massemailattachment",
24+
name="attachment_file",
25+
field=models.FileField(
26+
max_length=255,
27+
upload_to="emails/attachments/",
28+
verbose_name="Attachment file",
29+
),
30+
),
31+
]

emailtemplates/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class BaseEmailAttachment(models.Model):
8787
)
8888
name = models.CharField(_("name"), blank=True, max_length=50)
8989
attachment_file = models.FileField(
90-
_("Attachment file"), upload_to="emails/attachments/"
90+
_("Attachment file"), upload_to="emails/attachments/", max_length=255
9191
)
9292
comment = models.TextField(
9393
verbose_name=_("Comment"), blank=True, help_text=_("visible only in admin")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
setup(
1818
name='django-emailtemplates',
19-
version='1.1.15',
19+
version='1.1.16',
2020
packages=find_packages(),
2121
package_data={'emailtemplates': ['locale/*/LC_MESSAGES/*.po', 'locale/*/LC_MESSAGES/*.mo']},
2222
include_package_data=True,

0 commit comments

Comments
 (0)