added is_pushed and some "styling"

This commit is contained in:
Holger Sielaff
2024-07-13 10:19:49 +02:00
parent 3640ab759d
commit e7b2dff233
7 changed files with 24 additions and 13 deletions

View File

@@ -11,13 +11,13 @@ from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from content.models import Question as QuestionContent
from lib import get_current_user
from lib.core.db.models.mixins import AuthorAware, DateAware, PublishedAware
from tablequizwiki.settings import BASE_DIR
from lib.core.db.models.mixins import AuthorAware, DateAware
class Quiz(AuthorAware, DateAware):
class Quiz(AuthorAware, DateAware, PublishedAware):
name = models.CharField(max_length=250)
# author = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, default=get_current_user)
# created_at = models.DateTimeField(auto_now_add=True)