forked from Bulkmailer/BulkMailer-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Following changes are made with this commit :
Refactor : Merged Schedule mail and Sent mail in a single Model Refactor : Email Column Validation in Bulk Upload Add : More than one attachment for Mail
- Loading branch information
1 parent
7689741
commit 0c0f52b
Showing
189 changed files
with
315 additions
and
36,317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Generated by Django 4.1.4 on 2023-01-22 15:54 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
("mailer", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="SentMail", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("_from", models.CharField(max_length=200)), | ||
("_group", models.CharField(max_length=200)), | ||
("_company", models.CharField(blank=True, max_length=200, null=True)), | ||
("_body", models.CharField(blank=True, max_length=200, null=True)), | ||
("_subject", models.CharField(max_length=200)), | ||
("_template", models.CharField(blank=True, max_length=200, null=True)), | ||
("_file", models.FileField(blank=True, null=True, upload_to="media")), | ||
("_image", models.ImageField(blank=True, null=True, upload_to="media")), | ||
("time", models.DateTimeField(auto_now=True)), | ||
("celeryID", models.CharField(blank=True, max_length=200, null=True)), | ||
("status", models.CharField(default="PENDING", max_length=200)), | ||
( | ||
"user", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name="SchedulingMail", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("_from", models.CharField(max_length=200)), | ||
("_group", models.CharField(max_length=200)), | ||
("_company", models.CharField(blank=True, max_length=200, null=True)), | ||
("_body", models.CharField(blank=True, max_length=200, null=True)), | ||
("_subject", models.CharField(max_length=200)), | ||
("_template", models.CharField(blank=True, max_length=200, null=True)), | ||
("_file", models.FileField(blank=True, null=True, upload_to="media")), | ||
("_image", models.ImageField(blank=True, null=True, upload_to="media")), | ||
("_year", models.IntegerField()), | ||
("_month", models.IntegerField()), | ||
("_date", models.IntegerField()), | ||
("_hour", models.IntegerField()), | ||
("_minute", models.IntegerField()), | ||
("time", models.DateTimeField(auto_now=True)), | ||
("celeryID", models.CharField(blank=True, max_length=200, null=True)), | ||
("status", models.CharField(default="PENDING", max_length=200)), | ||
( | ||
"user", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to=settings.AUTH_USER_MODEL, | ||
), | ||
), | ||
], | ||
), | ||
] |
46 changes: 46 additions & 0 deletions
46
mailer/migrations/0003_sentmail__date_sentmail__hour_sentmail__minute_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Generated by Django 4.1.4 on 2023-01-23 10:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mailer", "0002_sentmail_schedulingmail"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="sentmail", | ||
name="_date", | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="sentmail", | ||
name="_hour", | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="sentmail", | ||
name="_minute", | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="sentmail", | ||
name="_month", | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="sentmail", | ||
name="_year", | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="sentmail", | ||
name="scheduleMail", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.DeleteModel( | ||
name="SchedulingMail", | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
mailer/migrations/0004_alter_sentmail__from_alter_sentmail__group_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 4.1.4 on 2023-01-23 11:46 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mailer", "0003_sentmail__date_sentmail__hour_sentmail__minute_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="sentmail", | ||
name="_from", | ||
field=models.CharField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="sentmail", | ||
name="_group", | ||
field=models.CharField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="sentmail", | ||
name="_subject", | ||
field=models.CharField(blank=True, max_length=200, null=True), | ||
), | ||
] |
Oops, something went wrong.