Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use `managed = False` and `db_table` to have another model pointing to the same table. `managed = False` will stop Django automatically creating schema migrations.

eg.

```

class ReadOnlyUser(models.Model):

    email = models.CharField(max_length=255)

    class Meta:
        db_table = "users"
        managed = False
```


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: