Rename smart links title and dynamic_title fileds to label and dynamic_label.

This commit is contained in:
Roberto Rosario
2015-07-07 23:20:48 -04:00
parent a5cee3c963
commit ac5f403997
5 changed files with 63 additions and 13 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ from .models import SmartLink, SmartLinkCondition
class SmartLinkForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(SmartLinkForm, self).__init__(*args, **kwargs)
self.fields['dynamic_title'].help_text = ' '.join([unicode(self.fields['dynamic_title'].help_text), ModelAttribute.help_text_for(Document, type_names=['field', 'related', 'property'])])
self.fields['dynamic_label'].help_text = ' '.join([unicode(self.fields['dynamic_label'].help_text), ModelAttribute.help_text_for(Document, type_names=['field', 'related', 'property'])])
class Meta:
fields = ('title', 'dynamic_title', 'enabled')
fields = ('label', 'dynamic_label', 'enabled')
model = SmartLink