Skip to content

Handling Date within Simple Objects #91

Answered by s-cork
lewysigns asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think it's a bug. You're setting the value of the cell, which is then going to try and format the value. Which is then going to set the value of the cell, which is then...

I assume if you set the second parameter in setValue to False it also throws a recursion error?

A custom sorter might work.

I think you can also change the field to:

   {"title":"Date","field":"object.date","formatter":self.get_date}

and that'll probably eliminate the need for a custom sorter.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lewysigns
Comment options

@s-cork
Comment options

@s-cork
Comment options

@lewysigns
Comment options

Answer selected by lewysigns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants