python - Django Model Subclass - no fields declared in subclass creating indentation error -


class value_list:     name = models.charfield(max_length=50)     description = models.textfield(max_length=140)      class meta:         abstract = true   class meter(value_list):   class contributionrole(value_list):   class attributioncertainty(value_list): 

the subclasses don't need own fields declared (value_list option lists of various sorts).

this causing indentation error @ class meter(value_list), because there no indented block beneath it.

like shmee said, need "pass" avoid indentation error

class meter(value_list):     pass 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -