kopia lustrzana https://github.com/wagtail/wagtail
Allow value_class to be overridden at the field level
rodzic
c75b7f9404
commit
bb28daf65a
|
@ -88,7 +88,7 @@ class StreamField(models.Field):
|
|||
|
||||
# extract kwargs that are to be passed on to the block, not handled by super
|
||||
block_opts = {}
|
||||
for arg in ["min_num", "max_num", "block_counts", "collapsed"]:
|
||||
for arg in ["min_num", "max_num", "block_counts", "collapsed", "value_class"]:
|
||||
if arg in kwargs:
|
||||
block_opts[arg] = kwargs.pop(arg)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue