예제 #1
0
class DraftArticleTranslation(
    ArticleTranslation.get_draft_model(),
    ArticleTranslation
):
    objects = DraftDraftableManager()
    class Meta:
        proxy = True
예제 #2
0
class DraftAnswerTranslation(
    AnswerTranslation.get_draft_model(),
    AnswerTranslation,
):
    objects = DraftDraftableManager()
    class Meta:
        proxy = True
예제 #3
0
class DraftTranslatedQuestion(
    TranslatedQuestion.get_draft_model(),
    TranslatedQuestion,
):
    objects = DraftDraftableManager()
    class Meta:
        proxy = True
예제 #4
0
class ArticleDraft(Article.get_draft_model(), Article):
    objects = DraftDraftableManager()

    class Meta:
        proxy = True

    def get_absolute_url(self):
        return reverse('dashboard:edit-article', kwargs={'draft_id': self.id})