kelvan avatar kelvan committed 759dc85

small fix in newexpert form

Comments (0)

Files changed (2)


 from freieit.models import ExpertProfile
 class ExpertProfileForm(ModelForm):
-    email = forms.EmailField()
+    email = forms.EmailField(max_length=30)
     terms = forms.BooleanField()
     class Meta:
         model = ExpertProfile
         exclude = ('user', 'editor', 'available')


                                 help_text=_("short description of the services"),
                                 verbose_name = _('services'))
     description = models.TextField(max_length=2048, blank=True, default="")
     # location of expert
     street = models.CharField(max_length=50, blank=True, default="")
     number = models.CharField(max_length=15, blank=True, default="")
-                                  help_text=_('per hour incl. VAT'),
+                                  help_text=_('per hour incl. VAT, leave blank if variable'),
     currency = models.CharField(max_length=3, choices=CURRENCIES,
                                 blank=True, default="EUR",
     available = models.BooleanField(default=True, help_text=_("disable eg if you are on holidays"))
     class Meta:
             #unique_together = (("user", "name"),)
             verbose_name = _('Expert Profile')
     def taglist(self):
         return ", ".join(map(lambda t: t[1], self.keywords.values_list()))
     def address(self):
         if self.street:
     def get_absolute_url(self):
         return "/expert/%s" % self.user.username
 class Link(AuditedModel):
     expert = models.ForeignKey(ExpertProfile)
     label = models.CharField(max_length=20, choices=LABELS)
     url = models.CharField(max_length=200)
 class TagAdmin(admin.ModelAdmin):
     list_display = ['name']
     list_filter = ['parent__name']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.