kopia lustrzana https://github.com/wagtail/wagtail
Fix typo in StructBlock documentation
The StructValue class `LinkValue` is refrerenced as `LinkStructValue` in the Meta class.pull/7462/head
rodzic
2d741386c4
commit
fd42d192c9
|
@ -241,7 +241,7 @@ Instead, you should define a subclass of ``StructValue`` that implements your cu
|
|||
from wagtail.core.blocks import StructValue
|
||||
|
||||
|
||||
class LinkValue(StructValue):
|
||||
class LinkStructValue(StructValue):
|
||||
def url(self):
|
||||
external_url = self.get('external_url')
|
||||
page = self.get('page')
|
||||
|
|
Ładowanie…
Reference in New Issue