Skip to content

Commit

Permalink
Merge pull request #78 from snuhcs-course/daeguhighman-patch-1
Browse files Browse the repository at this point in the history
Daeguhighman patch 1
  • Loading branch information
SeongjunJo authored Nov 30, 2023
2 parents 52f473b + 6f5d987 commit 02e808c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/post/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class Duration(models.Model):
event_day = models.DateField(null=False,primary_key=True,default=date.today)

class Post(models.Model):
title = models.CharField(max_length=30)
title = models.CharField(max_length=300)
author = models.ForeignKey(PersonalUser, on_delete=models.CASCADE,null=True)
content = models.CharField(null=True,max_length=1000)
place = models.CharField(null=True,max_length=30)
content = models.CharField(null=True,max_length=10000)
place = models.CharField(null=True,max_length=300)
image = models.URLField(null=True)
is_festival = models.BooleanField(null=True)
like_users = models.ManyToManyField(PersonalUser, blank=True, related_name='like_posts', through='Like')
Expand Down Expand Up @@ -38,4 +38,4 @@ class EventDuration(models.Model):
class Recommend(models.Model):
user = models.ForeignKey(PersonalUser, on_delete=models.CASCADE)
post = models.ForeignKey('post.Post', on_delete=models.CASCADE)
score = models.IntegerField(default=0)
score = models.IntegerField(default=0)

0 comments on commit 02e808c

Please sign in to comment.