예제 #1
0
class SubmittedTranslatedQuestion(
    TranslatedQuestion.get_submitted_model(),
    TranslatedQuestion,
):
    objects = SubmittedDraftableManager()
    class Meta:
        proxy = True
예제 #2
0
class SubmittedArticle(Article.get_submitted_model(), Article):
    objects = SubmittedDraftableManager()

    class Meta:
        proxy = True

    def get_absolute_url(self):
        return reverse('dashboard:review-article', kwargs={'article': self.id})
예제 #3
0
class SubmittedArticleTranslation(
        ArticleTranslation.get_submitted_model(),
        ArticleTranslation,
):
    objects = SubmittedDraftableManager()

    class Meta:
        proxy = True

    def get_publish_url(self):
        return reverse('dashboard:publish-article-translation',
                       kwargs={
                           'pk': self.id,
                       })