Skip to content

Commit

Permalink
fix:user
Browse files Browse the repository at this point in the history
  • Loading branch information
zswj123 committed Jul 9, 2021
1 parent 2f075b6 commit bb7b757
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.contrib.auth.models import User

class Note(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
pub_date = models.DateTimeField()
title = models.CharField(max_length=200)
body = models.TextField()
Expand Down

0 comments on commit bb7b757

Please sign in to comment.