I have a legacy database, where some table contains composite primary key. The model I get by running manage.py inspectdb command looks like this.
manage.py inspectdb
You must Delete managed = False command from the model to be able to edit your table