X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/1a798a8611063ff9abc2b8cd9104e45580f7bffd..a1247c46b02c89a7d80fed36c89ce8476d0eac79:/edumed/views.py diff --git a/edumed/views.py b/edumed/views.py index b497716..bde67ef 100755 --- a/edumed/views.py +++ b/edumed/views.py @@ -1,6 +1,9 @@ import os.path from django.conf import settings from django.views.generic import TemplateView +from pybb.views import ProfileEditView +from .forms import AvatarlessEditProfileForm + class HomeView(TemplateView): template_name="home.html" @@ -10,3 +13,6 @@ class HomeView(TemplateView): context['package_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE) context['package_student_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE_STUDENT) return context + +class AvatarlessProfileEditView(ProfileEditView): + form_class = AvatarlessEditProfileForm