deschler / django-modeltranslation

Translates Django models using a registration approach.
BSD 3-Clause "New" or "Revised" License
1.38k stars 257 forks source link

Make CharFields not null by default #487

Open arielpontes opened 6 years ago

arielpontes commented 6 years ago

When registering a CharField for translation, the extra language fields that are created have null=True. Django explicitly recommends against that. According to Django's recommended practices, the fields should be nullable and store empty strings by default. If someone for some reason needs to have nullable language fields, they should have to explicitly set some extra configuration for that to happen. Currently not only is this behavior not the default, there seems to be no available settings that I can configure in order to get the desired behavior.

last-partizan commented 5 years ago

I agree with you.

I will look into this when i have time, or you cant make pull-request with changes.