Closed glanzel closed 3 years ago
Seems to me that success is never set in the process of sending and instead only the default value is written to the Database.
class Receipt(models.Model): success = models.BooleanField(default=False)
Yep, this is an oversight. The campaign is marked as Sent
but the individual receipts are never marked as successful. I wonder how useful it is now I think about it, a receipt is not created if the campaign doesn't send, so it's successful by definition.
in this case if you just set
models.BooleanField(default=True)
it shows the correct value.
And later you could add additional checks if wanted.
Sorry, I would like to clarify.
I didn't find appropriate migration (https://github.com/neon-jungle/wagtail-birdsong/tree/master/birdsong/migrations) for this changing:
Was it intentional?
I'll try to explain why it is interesting for me.
dependencies = [ ('birdsong', '0005_auto_...'), ... ]
As result, when I transfer the changes to container in production via CI/CD I can't migrate, because of course there are not migration '0005auto... .py' in packet 'birdsong' on production.
As workaround I can change dependencies in my migration file: from ('birdsong', '0005auto...') to ('birdsong', '0004_campaign_status'). But I'm worried that this may cause issues with updating wagtail-birdsong version in the future.
Thank you.
When inspecting a already send Campaign. Eventhough the email is sucessfully send und Recipients is is still written Success = False