Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/thraxil/spokehub
Browse files Browse the repository at this point in the history
  • Loading branch information
argoncobalt committed Mar 11, 2016
2 parents 3d5f424 + 940c146 commit addaa05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spokehub/profile/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.forms import CharField
from userena.forms import EditProfileForm


class ExtendedEditProfileForm(EditProfileForm):
first_name = CharField(label='First name', max_length=30, required=True)
last_name = CharField(label='Last name', max_length=30, required=True)
5 changes: 5 additions & 0 deletions spokehub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.conf import settings
from django.views.generic import TemplateView
from spokehub.main import views
from spokehub.profile.forms import ExtendedEditProfileForm
import os.path
admin.autodiscover()

Expand All @@ -13,6 +14,10 @@

url(r'^accounts/signout/(?P<next_page>.*)/$',
'userena.views.signout', name='userena_signout_next'),
url(r'^accounts/(?P<username>[\@\.\w-]+)/edit/$',
'userena.views.profile_edit',
{'edit_profile_form': ExtendedEditProfileForm},
name='userena_profile_edit'),
(r'^accounts/', include('userena.urls')),
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^about/$', TemplateView.as_view(template_name="about.html"),
Expand Down

0 comments on commit addaa05

Please sign in to comment.