Commits

Nathaniel Tucker  committed 448e1d0

Help text for team creation

  • Participants
  • Parent commits 4cae83a

Comments (0)

Files changed (2)

File ahgl/apps/profiles/models.py

     name = models.CharField(_("name"), max_length=50)
     slug = models.SlugField(_("slug"), max_length=50)
     photo = ImageField(upload_to='team_photos', null=True, blank=True)
-    charity = models.ForeignKey('profiles.Charity', null=True, blank=True, on_delete=models.SET_NULL, related_name='teams')
+    charity = models.ForeignKey('profiles.Charity', null=True, blank=True, on_delete=models.SET_NULL, related_name='teams', help_text=u"If your charity is not listed, send a message to an admin for it to be added.")
     motto = models.CharField(max_length=70, blank=True)
     approval = models.FileField(upload_to='team_approvals', null=True, blank=True)
     members = models.ManyToManyField('Profile', null=True, blank=True, related_name='teams', through=TeamMembership)

File ahgl/apps/profiles/views.py

         view = self
         class TeamCreateForm(ModelForm):
             #duplicate = forms.ModelChoiceField(queryset=Team.objects.filter(team_membership__profile__user=view.request.user), required=False)
-            char_name = forms.CharField(max_length=TeamMembership._meta.get_field('char_name').max_length, required=True, label="Your char name")
+            char_name = forms.CharField(max_length=TeamMembership._meta.get_field('char_name').max_length, required=True, label="Your character name", help_text=u"or Summoner name")
             class Meta:
                 model = Team
                 exclude=('tournament','rank','seed','members',)