Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

Commit

Permalink
Remote auto_publish field from Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley committed Apr 9, 2018
1 parent 729e0a5 commit 723a7a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
9 changes: 2 additions & 7 deletions pulpcore/pulpcore/app/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ class Publisher(MasterModel):
Fields:
auto_publish (models.BooleanField): Indicates that the adaptor may publish automatically
when the associated repository's content has changed.
last_published (models.DatetimeField): When the last successful publish occurred.
Relations:
Expand All @@ -155,8 +153,6 @@ class Publisher(MasterModel):
TYPE = 'publisher'

name = models.TextField(db_index=True, unique=True)

auto_publish = models.BooleanField(default=True)
last_published = models.DateTimeField(blank=True, null=True)

class Meta:
Expand All @@ -169,16 +165,15 @@ class Exporter(MasterModel):
Fields:
name (models.CharField): The exporter unique name.
last_updated (models.DatetimeField): Timestamp of the last update.
name (models.TextField): The exporter unique name.
last_export (models.DatetimeField): When the last successful export occurred.
Relations:
"""
TYPE = 'exporter'

name = models.CharField(max_length=255, db_index=True, unique=True)
name = models.TextField(db_index=True, unique=True)
last_export = models.DateTimeField(blank=True, null=True)

class Meta:
Expand Down
7 changes: 1 addition & 6 deletions pulpcore/pulpcore/app/serializers/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ class PublisherSerializer(MasterModelSerializer):
help_text=_('Timestamp of the most recent update of the publisher configuration.'),
read_only=True
)
auto_publish = serializers.BooleanField(
help_text=_('An indication that the automatic publish may happen when'
' the repository content has changed.'),
required=False
)
last_published = serializers.DateTimeField(
help_text=_('Timestamp of the most recent successful publish.'),
read_only=True
Expand All @@ -165,7 +160,7 @@ class Meta:
abstract = True
model = models.Publisher
fields = MasterModelSerializer.Meta.fields + (
'name', 'last_updated', 'auto_publish', 'last_published', 'distributions',
'name', 'last_updated', 'last_published', 'distributions',
)


Expand Down

0 comments on commit 723a7a7

Please sign in to comment.