From d8f86ecba0f66279565414f210803d94a63fd1d3 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 23 May 2018 16:19:59 -0400 Subject: [PATCH] add help text for the new custom_virtualenv field see: https://github.com/ansible/tower/issues/1866 --- .../0039_v330_custom_venv_help_text.py | 33 +++++++++++++++++++ awx/main/models/mixins.py | 3 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 awx/main/migrations/0039_v330_custom_venv_help_text.py diff --git a/awx/main/migrations/0039_v330_custom_venv_help_text.py b/awx/main/migrations/0039_v330_custom_venv_help_text.py new file mode 100644 index 0000000000..ba68aa158f --- /dev/null +++ b/awx/main/migrations/0039_v330_custom_venv_help_text.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.11 on 2018-05-23 20:17 +from __future__ import unicode_literals + +import awx.main.fields +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0038_v330_add_deleted_activitystream_actor'), + ] + + operations = [ + migrations.AlterField( + model_name='jobtemplate', + name='custom_virtualenv', + field=models.CharField(blank=True, default=None, help_text='Local absolute file path containing a custom Python virtualenv to use', max_length=100, null=True), + ), + migrations.AlterField( + model_name='organization', + name='custom_virtualenv', + field=models.CharField(blank=True, default=None, help_text='Local absolute file path containing a custom Python virtualenv to use', max_length=100, null=True), + ), + migrations.AlterField( + model_name='project', + name='custom_virtualenv', + field=models.CharField(blank=True, default=None, help_text='Local absolute file path containing a custom Python virtualenv to use', max_length=100, null=True), + ), + ] diff --git a/awx/main/models/mixins.py b/awx/main/models/mixins.py index 7d563f1e36..2314b295ae 100644 --- a/awx/main/models/mixins.py +++ b/awx/main/models/mixins.py @@ -436,7 +436,8 @@ class CustomVirtualEnvMixin(models.Model): blank=True, null=True, default=None, - max_length=100 + max_length=100, + help_text=_('Local absolute file path containing a custom Python virtualenv to use') ) def clean_custom_virtualenv(self):