Opened 4 years ago
Closed 4 years ago
#33103 closed Cleanup/optimization (invalid)
I want to get the SQL through the model
| Reported by: | Tuffy | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 3.2 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I have a Student Model:
class Student(models.Model):
stu_name = models.CharField(max_length=6, unique=True)
In the views, I want the SQL to create the student table in the database.
Change History (2)
comment:4 by , 4 years ago
| Resolution: | → invalid |
|---|
comment:5 by , 4 years ago
| Status: | new → closed |
|---|
Note:
See TracTickets
for help on using tickets.
See TicketClosingReasons/UseSupportChannels for ways to get help with Django usage.