current page update in article api

This commit is contained in:
jain
2023-08-10 15:30:46 +05:30
parent 7a9be0326a
commit 69723b362f
8 changed files with 78 additions and 14 deletions

View File

@ -173,6 +173,8 @@ class JuniorArticle(models.Model):
# article completed"""
is_completed = models.BooleanField(default=False)
status = models.CharField(max_length=10, choices=ARTICLE_STATUS, null=True, blank=True, default='1')
current_card_page = models.IntegerField(blank=True, null=True, default=0)
current_que_page = models.IntegerField(blank=True, null=True, default=0)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)