Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModelSerializer - IntegerField broken in 3.1.0 #2660

Closed
fpieper opened this issue Mar 10, 2015 · 2 comments
Closed

ModelSerializer - IntegerField broken in 3.1.0 #2660

fpieper opened this issue Mar 10, 2015 · 2 comments

Comments

@fpieper
Copy link

fpieper commented Mar 10, 2015

I get an KeyError u'max_value' in 3.1.0 if one of the fields in the code below is an IntegerField
FloatFields and CharFields are working without a problem.

The same code (with all types of fields) works in 3.0.5 like a charm.

class ProfileSerializer(serializers.ModelSerializer):
    class Meta:
        model = Profile
        fields = ('rating', 'rating_votes', 'sub_type', 'sub_expire_date', 'language')

Or did I miss anything?

Yours
Florian

@jpadilla
Copy link
Member

@fpieper might this be related to #2645?

@fpieper
Copy link
Author

fpieper commented Mar 10, 2015

yes, it's the same behaviour => duplicate

@jpadilla thanks for your fast reply :)

@fpieper fpieper closed this as completed Mar 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants