News for hackers. Stuff that matters.
Re:Elixir for Humans Who Know Python by neillyons on Saturday February 25, 2023 @02:27PM (#34939624)
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
```

There are no comments on this comment yet.