We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f075b6 commit bb7b757Copy full SHA for bb7b757
app/models.py
@@ -2,6 +2,7 @@
2
from django.contrib.auth.models import User
3
4
class Note(models.Model):
5
+ user = models.ForeignKey(User, on_delete=models.CASCADE)
6
pub_date = models.DateTimeField()
7
title = models.CharField(max_length=200)
8
body = models.TextField()
0 commit comments