1
0
Fork 0

Basic site functionality (add, delete, search) withouth added vulns

This commit is contained in:
Vili Sinervä 2024-11-24 17:58:53 +02:00
parent d9a41f82bb
commit efee16df40
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
6 changed files with 139 additions and 11 deletions

View file

@ -1,3 +1,7 @@
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Note(models.Model):
owner = models.ForeignKey(User, on_delete=models.CASCADE)
body = models.TextField()
time = models.DateTimeField(auto_now_add=True)