Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django model specify table name

class TempUser(models.Model):
    first_name = models.CharField(max_length=100)
    // ....
    class Meta:
        db_table = "tbl_temp_users"
 
PREVIOUS NEXT
Tagged: #django #model #table
ADD COMMENT
Topic
Name
7+3 =