Skip to content

Commit

Permalink
Rename column to better explain purpose (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Oct 16, 2023
1 parent a2c7f54 commit 776509c
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(canonical_uuid=tables.A("uuid"), model=camel_to_snake('IOP')),
Expand All @@ -70,7 +70,7 @@ class Meta(LimitedTableBase.Meta):


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


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


class DeploymentPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Deployment')),
Expand All @@ -176,7 +176,7 @@ class Meta(LimitedTableBase.Meta):


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


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


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


class HomeBasePublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('HomeBase')),
Expand All @@ -244,7 +244,7 @@ class Meta(LimitedTableBase.Meta):


class FocusAreaPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('FocusArea')),
Expand All @@ -261,7 +261,7 @@ class Meta(LimitedTableBase.Meta):


class SeasonPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Season')),
Expand All @@ -278,7 +278,7 @@ class Meta(LimitedTableBase.Meta):


class RepositoryPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Repository')),
Expand All @@ -295,7 +295,7 @@ class Meta(LimitedTableBase.Meta):


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


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


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


class PartnerOrgPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('PartnerOrg')),
Expand All @@ -366,7 +366,7 @@ class Meta(LimitedTableBase.Meta):


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


class CampaignPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Campaign')),
Expand All @@ -400,7 +400,7 @@ class Meta(LimitedTableBase.Meta):


class PlatformPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Platform')),
Expand All @@ -417,7 +417,7 @@ class Meta(LimitedTableBase.Meta):


class InstrumentPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Instrument')),
Expand All @@ -434,7 +434,7 @@ class Meta(LimitedTableBase.Meta):


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


class AliasPublishedTable(LimitedTableBase):
short_name = ConditionalValueColumn(
short_name = BackupValueColumn(
linkify=(
"published-detail",
dict(canonical_uuid=tables.A("uuid"), model=camel_to_snake('Alias')),
Expand All @@ -470,7 +470,7 @@ class Meta(LimitedTableBase.Meta):


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


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


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


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


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

0 comments on commit 776509c

Please sign in to comment.