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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

java - Log4j2 configuration not found when running standalone application builded by shade plugin -

python - How do I create a list index that loops through integers in another list -