Code

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14666 closed (wontfix)

Ability to control the order the column in Models when mapping to the sql

Reported by: ziangsong Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2
Severity: Keywords: sprintdec2010
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Suppose I have a base entity which derives all my subclasses, I want to put all columns from the base entity after the columns of the subclass when generate the SQL. But it seems that there is no way to do it.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by tttallis

  • Component changed from Uncategorized to Database layer (models, ORM)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

It would be helpful to provide more context for this ticket. You don't say why controlling the order of columns in generated SQL might be desirable. Also, if there is an edge case where this is desirable, could it be handled by dropping into raw SQL (http://docs.djangoproject.com/en/dev/topics/db/sql/)?

comment:2 Changed 4 years ago by tttallis

  • Keywords sprintdec2010 added

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.