Skip to content

Commit

Permalink
feat: add has_project field to workshop model (#27)
Browse files Browse the repository at this point in the history
* feat: add field has project to model

* migrations
  • Loading branch information
azare242 authored Nov 27, 2023
1 parent 167e700 commit ef3f271
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions backend/backend_api/migrations/0050_presentation_has_project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.4 on 2023-11-27 20:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("backend_api", "0049_alter_payment_id"),
]

operations = [
migrations.AddField(
model_name="presentation",
name="has_project",
field=models.BooleanField(default=False),
),
]
3 changes: 2 additions & 1 deletion backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class Presentation(models.Model):
year = models.IntegerField(blank=False, default=2020)
cost = models.PositiveIntegerField(default=0)
capacity = models.PositiveIntegerField(default=50)

has_project = models.BooleanField(default=False, blank=False)

NOT_ASSIGNED = 'NOT_ASSIGNED'
ELEMENTARY = 'Elementary'
INTERMEDIATE = 'Intermediate'
Expand Down

0 comments on commit ef3f271

Please sign in to comment.