Skip to content

Commit

Permalink
Merge pull request #40 from bmbouter/remove-validation-not-in-setting…
Browse files Browse the repository at this point in the history
…s-file

Remove settings file variable coercion
  • Loading branch information
daviddavis authored Mar 20, 2019
2 parents 3618c14 + 644ba35 commit eef3e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulpcore/app/serializers/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ class BaseURLField(serializers.CharField):

def to_representation(self, value):
base_path = value
host = settings.CONTENT_HOST or ''
prefix = settings.CONTENT_PATH_PREFIX or ''
host = settings.CONTENT_HOST
prefix = settings.CONTENT_PATH_PREFIX
return '/'.join(
(
host.strip('/'),
Expand Down

0 comments on commit eef3e96

Please sign in to comment.