Need feedback
83 | 83 | unique=True, blank=True, null=True, max_length=64, |
84 | 84 | help_text=_('Unique identifier of the person, e.g. a student number.')) |
85 | 85 | instance_limit = IntegerField(default=5) |
86 | use_gravatar = BooleanField(default=False) | |
86 | 87 | |
87 | 88 | def notify(self, subject, template, context={}, valid_until=None): |
88 | 89 | return Notification.send(self.user, subject, template, context, |
89 | 90 | valid_until) |
90 | 91 | |
91 | 92 | def get_absolute_url(self): |
92 | return reverse("dashboard.views.profile") | |
93 | return reverse("dashboard.views.profile", kwargs={'pk': self.user.pk}) | |
Please
register
or
sign in
to reply
|
11 | <div class="panel panel-default"> | |
12 | <div class="panel-heading"> | |
13 | <a class="pull-right btn btn-default btn-xs" href="{% url "dashboard.index" %}">{% trans "Back" %}</a> | |
14 | <h3 class="no-margin"> | |
15 | <i class="icon-user"></i> | |
16 | {% include "dashboard/_display-name.html" with user=profile show_org=True %} | |
17 | </h3> | |
18 | </div> | |
19 | <div class="panel-body"> | |
20 | <div> | |
21 | <div class="" style="float: left"> | |
22 | <img id="dashboard-profile-avatar" src="{{ avatar_url }}" class="img-rounded"/> | |
23 | </div> | |
24 | <div class="" style="padding-left: 215px;"> | |
25 | <p>{% trans "Username" %}: {{ profile.username }}</p> | |
26 | <p>{% trans "Organisation ID" %}: {{ profile.profile.org_id|default:"-" }}</p> | |
|