Skip to content

Commit

Permalink
#52 Adhering to code styling by using the standar order of members fo…
Browse files Browse the repository at this point in the history
…r the models class.
  • Loading branch information
jcaraballo17 committed Nov 2, 2020
1 parent 269c9ea commit c7663be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cvservices/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class ControlledVocabulary(ControlledVocabularyAbstraction):
vocabulary_status = models.CharField(max_length=255, db_column='status', choices=STATUS_CHOICES, default=CURRENT)
previous_version = models.OneToOneField('self', blank=True, null=True, related_name='revised_version', on_delete=models.CASCADE)

class Meta:
db_table = 'controlledvocabularies'
ordering = ["name"]

def has_revision(self):
revision = None
try:
Expand All @@ -53,10 +57,6 @@ def get_latest_version(self):
term = term.revised_version
return term

class Meta:
db_table = 'controlledvocabularies'
ordering = ["name"]


class ControlledVocabularyRequest(ControlledVocabularyAbstraction):
PENDING = 'Pending'
Expand Down

0 comments on commit c7663be

Please sign in to comment.