Comment #5 on issue 1481 by ledmonster: Review Board 500 error if testing done is over 65535 characters (or a bit smaller)
http://code.google.com/p/reviewboard/issues/detail?id=1481

It's a problem of djblets' JSONField.
Please remove 'db_type' method from JSONField, and everything goes well, because TextField uses 'longtext' in default.


class JSONField(models.TextField):
    """
A field for storing JSON-encoded data. The data is accessible as standard
    Python data types and is transparently encoded/decoded to/from a JSON
    string in the database.
    """
    serialize_to_string = True

    def __init__(self, verbose_name=None, name=None,
                 encoder=DjangoJSONEncoder(), **kwargs):
        models.TextField.__init__(self, verbose_name, name, blank=True,
                                  **kwargs)
        self.encoder = encoder

-     def db_type(self, connection=None):
-         return "text"


Django TextField's mysql type is defined at django.db.backends.mysql.creation

Related issue (Django): https://code.djangoproject.com/ticket/489

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to