summaryrefslogtreecommitdiffstats
path: root/templates/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-05 00:44:40 +0200
committerDan McGee <dan@archlinux.org>2010-10-05 00:44:40 +0200
commit82eb9de99335c0032986fb3273f9951756205fb9 (patch)
treee3f5270af40d9b840f7798b9ac40476de368523e /templates/public
parente847030d83796a5f8cccce2fb409dd4d672f71f3 (diff)
downloadarchweb-82eb9de99335c0032986fb3273f9951756205fb9.tar.gz
archweb-82eb9de99335c0032986fb3273f9951756205fb9.tar.xz
Make user profile a OneToOneField
We had this set up as a unique ForeignKey before, which adds some indirection due to the RelatedManager object being there. By making it a OneToOneField, we can get the profile object directly, enforce uniqueness, and also use it in select_related() calls to make our profiles page a bit more efficient. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/public')
-rw-r--r--templates/public/developer_list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html
index 61a612c..bb03f43 100644
--- a/templates/public/developer_list.html
+++ b/templates/public/developer_list.html
@@ -11,7 +11,7 @@
<table class="arch-bio-entry">
{% for dev in dev_list %}
- {% with dev.get_profile as prof %}
+ {% with dev.userprofile as prof %}
<tr>
<td class="pic pic-{{ dev.username }}">
<img src="{{ prof.picture.url }}" height="125" width="125" alt="Image for {{ prof.alias }}"/>