You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
331 B
9 lines
331 B
from django.db import models |
|
|
|
|
|
class Article(models.Model): |
|
id = models.BigAutoField(primary_key=True) |
|
body = models.TextField(null=False) |
|
link = models.CharField(max_length=200, null=False) |
|
publication_time = models.DateTimeField(blank=True, null=True) |
|
is_published = models.BooleanField(default=False) |