Code

Opened 5 years ago

Closed 5 years ago

#10346 closed (invalid)

Field overrides in model inheritance

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

Description

Why Django does'n implement a field overrides in a model "Meta inheritance". For example, in an abstract model, i put a field: name=CharField(max_length=40), and in an inherited model I want to override the field by: name=CharField(max_length=100)

This can be done in a Meta inheritance, because all fields reside in the model's db_table.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Please don't use the ticket system for asking questions -- the django-users mailing list is the appropriate place to ask.

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.