5 ms·
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
by neillyons 4y ago
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
```