Skip to content

Commit

Permalink
feat: Change presenter to teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaYousefpourM committed Jan 14, 2025
1 parent b5c80f3 commit 920a24e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.4 on 2025-01-14 16:12

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('backend_api', '0062_remove_presentationparticipation_certificate_uuid_and_more'),
]

operations = [
migrations.RemoveField(
model_name='presentation',
name='presenters',
),
migrations.AddField(
model_name='presentation',
name='teachers',
field=models.ManyToManyField(to='backend_api.teacher'),
),
]
2 changes: 1 addition & 1 deletion backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __str__(self):

class Presentation(models.Model):
name = models.CharField(max_length=SMALL_MAX_LENGTH)
presenters = models.ManyToManyField(Presenter)
teachers = models.ManyToManyField(Teacher)
desc = models.CharField(max_length=BIG_MAX_LENGTH)
year = models.IntegerField(blank=False, default=2020)
cost = models.PositiveIntegerField(default=0)
Expand Down

0 comments on commit 920a24e

Please sign in to comment.