mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
return last op as fallback for linked_orderposition
This commit is contained in:
committed by
Martin Gross
parent
f5da1e00fa
commit
5c0505c9c3
@@ -117,7 +117,7 @@ class ReusableMedium(LoggedModel):
|
|||||||
@cached_property
|
@cached_property
|
||||||
def linked_orderposition(self):
|
def linked_orderposition(self):
|
||||||
# always return last added linked_orderposition to make it behave backwardscompatible
|
# always return last added linked_orderposition to make it behave backwardscompatible
|
||||||
return self.linked_orderpositions.order_by('pk').last()
|
return self.linked_orderpositions.last()
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def media_type(self):
|
def media_type(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user