def __str__(self):
        if isinstance(self.fieldset_id, six.binary_type):
            return self.fieldset_id

        return self.fieldset_id.encode('utf-8')
Make sure SlugField honors max_length (#9706)
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/fields.py/BaseReviewRequestFieldSet.__str__--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/model_fields/tests.py/SlugFieldTests.test_slugfield_max_length