ordering is a list
This commit is contained in:
parent
15ceea3f5a
commit
be13ccdf78
|
@ -15,7 +15,7 @@ class Order(CreatedUpdatedModel):
|
|||
|
||||
class Meta:
|
||||
unique_together = ('user', 'open')
|
||||
ordering = '-created'
|
||||
ordering = ['-created']
|
||||
|
||||
products = models.ManyToManyField(
|
||||
'shop.Product',
|
||||
|
|
Loading…
Reference in a new issue