Try ordering via @property field order_by
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ class SignupForm(models.Model):
|
||||
|
||||
@property
|
||||
def signups(self):
|
||||
return Signup.objects.filter(signupForm=self)
|
||||
return Signup.objects.filter(signupForm=self).order_by('pk')
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Signup form')
|
||||
|
||||
Reference in New Issue
Block a user