Skip to content

Commit e0dad6e

Browse files
committed
feat: markdown allowed for overview and wanted
1 parent c6e722d commit e0dad6e

8 files changed

Lines changed: 1116 additions & 121 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Django 5.1.7 on 2025-04-26 05:09
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('projects', '0003_remove_project_match_percentage'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='project',
15+
name='description',
16+
field=models.TextField(max_length=255),
17+
),
18+
migrations.AlterField(
19+
model_name='project',
20+
name='full_description',
21+
field=models.TextField(blank=True, max_length=2500, null=True),
22+
),
23+
migrations.AlterField(
24+
model_name='project',
25+
name='wanted_description',
26+
field=models.TextField(blank=True, max_length=2500, null=True),
27+
),
28+
]

backend/projects/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Project(models.Model):
1010
# REQUIRED
1111
title = models.CharField(max_length=255, blank=False, null=False)
1212
institution = models.CharField(max_length=255, blank=False, null=False)
13-
description = models.TextField(blank=False, null=False)
13+
description = models.TextField(max_length=255,blank=False, null=False)
1414
positions = models.JSONField(default=list)
1515
image_url = models.ImageField(upload_to="projects/", blank=False, null=False)
1616

@@ -22,11 +22,11 @@ class Project(models.Model):
2222
images = models.JSONField(default=list, blank=True)
2323
interest_tags = ArrayField(models.CharField(max_length=225), blank=True, null=True)
2424
skill_tags = ArrayField(models.CharField(max_length=225), blank=True, null=True)
25-
full_description = models.CharField(max_length=1000, blank=True, null=True)
25+
full_description = models.TextField(max_length=2500, blank=True, null=True)
2626
email = models.EmailField(unique=True, blank=True, null=True)
2727
other_contact = models.CharField(max_length=225, blank=True, null=True)
2828
updates = ArrayField(models.CharField(max_length=540), blank=True, null=True)
29-
wanted_description = models.CharField(max_length=540, blank=True, null=True)
29+
wanted_description = models.TextField(max_length=2500, blank=True, null=True)
3030

3131
members = models.ManyToManyField(
3232
'userauth.User',

0 commit comments

Comments
 (0)