Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Comment(TimeStamps, models.Model):
- content = models.TextField()
- user = models.ForeignKey(User, null=True, on_delete=models.SET_NULL)
- # czy mozna tak?
- # word = model.ForeignKey(Word, default=null, null=True, on_delete=models.CASCADE)
- # category = model.ForeignKey(Category, default=null, null=True, on_delete=models.CASCADE)
- class Word(models.Model):
- pass
- class Category(models.Model):
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement