mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
remove cached_property linked_orderposition - keep only in API
This commit is contained in:
committed by
Martin Gross
parent
d6ed21c776
commit
d23855a1c4
@@ -114,11 +114,6 @@ class ReusableMedium(LoggedModel):
|
||||
|
||||
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
|
||||
def media_type(self):
|
||||
return MEDIA_TYPES[self.type]
|
||||
|
||||
Reference in New Issue
Block a user