Skip to content

Commit a97cc61

Browse files
authored
Merge pull request #451 from AvaCodeSolutions/refactor/439/cleanup-models
refactor: #439 PR 1 - using seperate modules for grouping models inst…
2 parents 1944528 + eac8feb commit a97cc61

42 files changed

Lines changed: 1552 additions & 1299 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ coverage.xml
3838

3939
# Media files
4040
media/
41+
private_files/
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Generated by Django 6.0.4 on 2026-05-14 07:27
2+
3+
import django.db.models.deletion
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
dependencies = [
9+
("django_email_learning", "0029_alter_assignmentsubmission_file_submission"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="organization",
15+
name="created_at",
16+
field=models.DateTimeField(auto_now_add=True, null=True),
17+
),
18+
migrations.AddField(
19+
model_name="organization",
20+
name="updated_at",
21+
field=models.DateTimeField(auto_now=True, null=True),
22+
),
23+
migrations.AddField(
24+
model_name="organizationuser",
25+
name="created_at",
26+
field=models.DateTimeField(auto_now_add=True, null=True),
27+
),
28+
migrations.AddField(
29+
model_name="organizationuser",
30+
name="updated_at",
31+
field=models.DateTimeField(auto_now=True, null=True),
32+
),
33+
migrations.AlterField(
34+
model_name="organizationuser",
35+
name="organization",
36+
field=models.ForeignKey(
37+
on_delete=django.db.models.deletion.CASCADE,
38+
related_name="members",
39+
to="django_email_learning.organization",
40+
),
41+
),
42+
]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Generated by Django 6.0.4 on 2026-05-14 07:57
2+
3+
from django.conf import settings
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
dependencies = [
9+
(
10+
"django_email_learning",
11+
"0030_organization_created_at_organization_updated_at_and_more",
12+
),
13+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
14+
]
15+
16+
operations = [
17+
migrations.AlterUniqueTogether(
18+
name="organizationuser",
19+
unique_together=set(),
20+
),
21+
migrations.AddConstraint(
22+
model_name="organizationuser",
23+
constraint=models.UniqueConstraint(
24+
fields=("user", "organization"), name="unique_user_organization"
25+
),
26+
),
27+
]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by Django 6.0.4 on 2026-05-14 08:08
2+
3+
import django_email_learning.services.utils
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
dependencies = [
9+
(
10+
"django_email_learning",
11+
"0031_alter_organizationuser_unique_together_and_more",
12+
),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name="assignmentsubmission",
18+
name="file_submission",
19+
field=models.FileField(
20+
blank=True,
21+
null=True,
22+
storage=django_email_learning.services.utils.get_private_file_storage,
23+
upload_to="assignment_submissions/",
24+
),
25+
),
26+
]

0 commit comments

Comments
 (0)