added is_pushed and some "styling"
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user