Published
- 1 min read
django model specify table name
The solution for this is noted below
django model specify table name
Solution
class TempUser(models.Model):
first_name = models.CharField(max_length=100)
// ....
class Meta:
db_table = "tbl_temp_users"
Try other methods by searching on the site. That is if this doesn’t work