Commits

Anonymous committed dce3ebc

Added help text
Removed duplicate field

Comments (0)

Files changed (1)

gnocchi/mail/models.py

 from django.db import models
 
 class Email(models.Model):
-    path = models.SlugField()
-    name = models.CharField(max_length=64)
-    subject = models.CharField(max_length=200)
+    name = models.CharField(max_length=64, help_text='Your reference for this form')
+    path = models.SlugField(help_text='URL fragment (e.g. "foo" will be "/mail/foo")')
+    subject = models.CharField(max_length=200, help_text='Email subject line')
     template = models.ForeignKey('cms.Template', related_name='+')
-    as_html = models.BooleanField(default=False)
+    as_html = models.BooleanField(default=False, help_text='Should the email be sent as HTML')
     email_to = models.CharField(max_length=1024)
     email_from = models.CharField(max_length=80)
     redirect_to = models.ForeignKey('cms.Page', related_name='+')
-    as_html = models.BooleanField(default=False)
     class Meta:
         verbose_name = 'Email Form'