Add HTML emails; add emails timestamp to sent emails; hopefully fix duplicate emails not sending via PM-bridge
parent
560d6dfa42
commit
4cfaa02df9
Binary file not shown.
Binary file not shown.
@ -0,0 +1,31 @@
|
||||
# Generated by Django 3.1.2 on 2020-11-06 17:15
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0002_quoteuser'),
|
||||
('download', '0007_pdf_upload_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='pdf',
|
||||
name='valid',
|
||||
field=models.BooleanField(default=1),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='EmailSent',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||||
('ref_code', models.CharField(max_length=8)),
|
||||
('pdf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='download.pdf')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.quoteuser')),
|
||||
],
|
||||
),
|
||||
]
|
@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.2 on 2020-11-06 17:18
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('download', '0008_auto_20201106_1715'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='emailsent',
|
||||
name='ref_code',
|
||||
field=models.CharField(max_length=256),
|
||||
),
|
||||
]
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<p>Here is your free quote for {{ address }}.</p>
|
||||
<p>This quote is valid for 30 days.</p>
|
||||
<div hidden>
|
||||
{{ address }}-{{ datetime }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
Here is your free quote for {{ address }}, which is valid for 30 days:
|
Loading…
Reference in new issue