Im still alittle unsure how python super works in the below context. If I have the below code running super().values_from_datadict()
Is that to say that values_from_datadict()
is a function that is available within the parent classes constructor?
Or is this just a function thats available in the parent class in which case. why call .super()? Shoulding it already be available via self.
class MyWidget(Select2TagWidget):
def value_from_datadict(self, data, files, name):
values = super().value_from_datadict(data, files, name)
return ",".join(values)