Skip to content

Commit

Permalink
Merge branch 'react-django' of github.com:AI4Bharat/ai4b-website into…
Browse files Browse the repository at this point in the history
… react-django
  • Loading branch information
Shanks0465 committed Sep 1, 2024
2 parents f42b3ab + 3526649 commit 2dd02f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ Caddyfile

/static/

data_dump.json
data_dump.json
db_bkp.json
1 change: 1 addition & 0 deletions backend/areas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class News(models.Model):
published_on = models.DateField(default=date.today)
image = models.ImageField(upload_to=image_directory_path,null=True,blank=True)
related_link = models.URLField(max_length=500, null=True, blank=True)
markdown_content = models.TextField(null=True,blank=True)

def __str__(self) -> str:
return f"{self.title}"
3 changes: 2 additions & 1 deletion backend/areas/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ class Meta:
"description",
"published_on",
"image",
"related_link"
"related_link",
"markdown_content"
]

0 comments on commit 2dd02f5

Please sign in to comment.