Skip to content

Commit

Permalink
feat: add markdown editor to notes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxidragon committed Oct 5, 2024
1 parent 45e2014 commit 2d41498
Show file tree
Hide file tree
Showing 9 changed files with 2,031 additions and 140 deletions.
18 changes: 18 additions & 0 deletions backend/notes/migrations/0003_alter_note_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.15 on 2024-10-05 12:54

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('notes', '0002_note_updated_at'),
]

operations = [
migrations.AlterField(
model_name='note',
name='description',
field=models.TextField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion backend/notes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class Note(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
description = models.TextField(null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE, related_name='notes')
Loading

0 comments on commit 2d41498

Please sign in to comment.