We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d985079 commit 7cc382eCopy full SHA for 7cc382e
postgresqleu/confreg/mail.py
@@ -20,7 +20,7 @@
20
21
class AttendeeEmailQuerySampleMixin:
22
def get_sample_attendee(self):
23
- ret = exec_to_dict("SELECT regid FROM ({}) WHERE regid IS NOT NULL".format(self.query), self.queryparams)
+ ret = exec_to_dict("SELECT regid FROM ({}) AS reglist WHERE regid IS NOT NULL".format(self.query), self.queryparams)
24
if ret:
25
return ConferenceRegistration.objects.get(pk=ret[0]['regid'])
26
else:
0 commit comments