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