Changes between Initial Version and Version 1 of Ticket #27264


Ignore:
Timestamp:
Sep 23, 2016, 9:38:18 AM (8 years ago)
Author:
luxcem
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27264 – Description

    initial v1  
    55does not work correctly,
    66
    7     from django.db import models
     7 
     8{{{
     9  from django.db import models
    810
    911    class BaseCategory(models.Model):
     
    2123            ordering = ['name']
    2224            db_table = 'samble'
     25}}}
     26
    2327
    2428Category.Meta.ordering is equal to ['title'], Category.Meta.db_table is
     
    2832A stranger behavior is when `abstract = True` is added to the subclass :
    2933
    30     class Category(BaseCategory):
     34 
     35{{{
     36  class Category(BaseCategory):
    3137
    3238        name = models.CharField(max_length=100)
     
    3642            ordering = ['name']
    3743            db_table = 'sample'
     44
     45}}}
    3846
    3947Now the behavior is correct (if abstract was not set) :
Back to Top