Skip to content

Commit

Permalink
ordering in app_index
Browse files Browse the repository at this point in the history
  • Loading branch information
jakosexy committed Aug 5, 2018
1 parent 25fec55 commit 0f6c49d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions music_publisher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class WorkBase(TitleBase):

class Meta:
abstract = True
verbose_name_plural = ' Works'


iswc = models.CharField(
'ISWC', max_length=15, blank=True, null=True, unique=True,
Expand All @@ -163,7 +165,7 @@ class AlbumCDBase(MusicPublisherBase):
class Meta:
abstract = True
verbose_name = 'Album and/or Library CD'
verbose_name_plural = 'Albums and Library CDs'
verbose_name_plural = ' Albums and Library CDs'

cd_identifier = models.CharField(
'CD Identifier',
Expand Down Expand Up @@ -267,6 +269,7 @@ class WriterBase(PersonBase):
class Meta:
abstract = True
ordering = ('last_name', 'first_name', 'ipi_name')
verbose_name_plural = ' Writers'

ipi_name = models.CharField(
'IPI Name #', max_length=11, blank=True, null=True, unique=True,
Expand Down Expand Up @@ -422,7 +425,7 @@ class Artist(PersonBase):
"""Concrete class for performing artists."""
class Meta:
verbose_name = 'Performing Artist'
verbose_name_plural = 'Performing Artists'
verbose_name_plural = ' Performing Artists'

@property
def json(self):
Expand Down Expand Up @@ -550,6 +553,7 @@ def json(self):
class CWRExport(models.Model):
class Meta:
verbose_name = 'CWR Export'
verbose_name_plural = 'CWR Exports'
ordering = ('-id',)

nwr_rev = models.CharField(
Expand Down

0 comments on commit 0f6c49d

Please sign in to comment.