check for streams if applicable
@@ -566,6 +566,11 @@ class Authorization(models.Model):
from TWLight.applications.models import Application
try:
+ if self.stream:
+ return Application.objects.filter(
+ specific_stream=self.stream, editor=self.user.editor
+ ).latest("id")
+ else:
return Application.objects.filter(
partner=self.partner, editor=self.user.editor
).latest("id")
