Skip to content

Commit

Permalink
Rename column to better explain purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Oct 14, 2023
1 parent 292c4ea commit c288333
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 149 deletions.
54 changes: 27 additions & 27 deletions app/admin_ui/tables/published.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
WebsiteType,
)

from .tables import ConditionalValueColumn, ShortNamefromUUIDColumn
from .tables import BackupValueColumn, ShortNamefromUUIDColumn


class LimitedTableBase(tables.Table):
Expand All @@ -46,7 +46,7 @@ class Meta:


class IOPPublishedTable(tables.Table):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('IOP'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -67,7 +67,7 @@ class Meta(LimitedTableBase.Meta):


class SignificantEventPublishedTable(tables.Table):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('SignificantEvent')),
Expand Down Expand Up @@ -120,7 +120,7 @@ class Meta(LimitedTableBase.Meta):


class DOIPublishedTable(tables.Table):
concept_id = ConditionalValueColumn(
concept_id = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('DOI'))),
verbose_name="Concept ID",
accessor="concept_id",
Expand Down Expand Up @@ -148,7 +148,7 @@ class Meta(LimitedTableBase.Meta):


class DeploymentPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Deployment'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -167,7 +167,7 @@ class Meta(LimitedTableBase.Meta):


class PlatformTypePublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('PlatformType')),
Expand All @@ -184,7 +184,7 @@ class Meta(LimitedTableBase.Meta):


class MeasurementTypePublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('MeasurementType')),
Expand All @@ -201,7 +201,7 @@ class Meta(LimitedTableBase.Meta):


class MeasurementStylePublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('MeasurementStyle')),
Expand All @@ -218,7 +218,7 @@ class Meta(LimitedTableBase.Meta):


class HomeBasePublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('HomeBase'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -232,7 +232,7 @@ class Meta(LimitedTableBase.Meta):


class FocusAreaPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('FocusArea'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -246,7 +246,7 @@ class Meta(LimitedTableBase.Meta):


class SeasonPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Season'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -260,7 +260,7 @@ class Meta(LimitedTableBase.Meta):


class RepositoryPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Repository'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -274,7 +274,7 @@ class Meta(LimitedTableBase.Meta):


class MeasurementRegionPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('MeasurementRegion')),
Expand All @@ -292,7 +292,7 @@ class Meta(LimitedTableBase.Meta):


class GeographicalRegionPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('GeographicalRegion')),
Expand All @@ -310,7 +310,7 @@ class Meta(LimitedTableBase.Meta):


class GeophysicalConceptPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('GeophysicalConcept')),
Expand All @@ -328,7 +328,7 @@ class Meta(LimitedTableBase.Meta):


class PartnerOrgPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('PartnerOrg'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -342,7 +342,7 @@ class Meta(LimitedTableBase.Meta):


class WebsiteTypePublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('WebsiteType')),
Expand All @@ -359,7 +359,7 @@ class Meta(LimitedTableBase.Meta):


class CampaignPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Campaign'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -373,7 +373,7 @@ class Meta(LimitedTableBase.Meta):


class PlatformPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Platform'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -387,7 +387,7 @@ class Meta(LimitedTableBase.Meta):


class InstrumentPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Instrument'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -401,7 +401,7 @@ class Meta(LimitedTableBase.Meta):


class WebsitePublishedTable(tables.Table):
title = ConditionalValueColumn(
title = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Website'))),
verbose_name="Title",
accessor="title",
Expand All @@ -416,7 +416,7 @@ class Meta(LimitedTableBase.Meta):


class AliasPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Alias'))),
verbose_name="Short Name",
accessor="short_name",
Expand All @@ -431,7 +431,7 @@ class Meta(LimitedTableBase.Meta):


class GcmdProjectPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('GcmdProject')),
Expand All @@ -448,7 +448,7 @@ class Meta(LimitedTableBase.Meta):


class GcmdInstrumentPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('GcmdInstrument')),
Expand Down Expand Up @@ -479,7 +479,7 @@ class Meta(LimitedTableBase.Meta):


class GcmdPlatformPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('GcmdPlatform')),
Expand All @@ -496,7 +496,7 @@ class Meta(LimitedTableBase.Meta):


class GcmdPhenomenonPublishedTable(tables.Table):
variable_3 = ConditionalValueColumn(
variable_3 = BackupValueColumn(
linkify=(
"published-detail",
dict(pk=tables.A("uuid"), model=camel_to_snake('GcmdPhenomenon')),
Expand All @@ -517,7 +517,7 @@ class Meta(LimitedTableBase.Meta):


class ImagePublishedTable(tables.Table):
title = ConditionalValueColumn(
title = BackupValueColumn(
linkify=("published-detail", dict(pk=tables.A("uuid"), model=camel_to_snake('Image'))),
verbose_name="Title",
accessor="title",
Expand Down
Loading

0 comments on commit c288333

Please sign in to comment.