Add a model that looks and behave like pages.LiveEvent to add survey.Campaign to a pages.Sequence. For example:
class SurveyEvent(models.Model):
element = models.ForeignKey(PageElement, on_delete=models.CASCADE,
related_name='surveys')
campaign = models.ForeignKey(Campaign, on_delete=models.CASCADE)
Then override pages.views.SequenceProgressView following the same pattern as done in djaopsp.api.content.PageElementAPIView to be able to add a survey in a sequence.
Add the fixtures required to test a sequence: text-to-read, live-event, survey, certificate.
Add a model that looks and behave like
pages.LiveEvent
to addsurvey.Campaign
to apages.Sequence
. For example:Then override
pages.views.SequenceProgressView
following the same pattern as done indjaopsp.api.content.PageElementAPIView
to be able to add a survey in a sequence.Add the fixtures required to test a sequence: text-to-read, live-event, survey, certificate.