mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
remove cached_property linked_orderposition - keep only in API
This commit is contained in:
@@ -114,11 +114,6 @@ class ReusableMedium(LoggedModel):
|
|||||||
|
|
||||||
objects = ReusableMediumQuerySetManager()
|
objects = ReusableMediumQuerySetManager()
|
||||||
|
|
||||||
@cached_property
|
|
||||||
def linked_orderposition(self):
|
|
||||||
# always return last added linked_orderposition to make it behave backwardscompatible
|
|
||||||
return self.linked_orderpositions.last()
|
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def media_type(self):
|
def media_type(self):
|
||||||
return MEDIA_TYPES[self.type]
|
return MEDIA_TYPES[self.type]
|
||||||
|
|||||||
Reference in New Issue
Block a user