[Oi-commits] r176 - in trunk: st templates
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Sat Jun 9 10:21:37 EEST 2007
Author: erenturkay
Date: Sat Jun 9 10:21:37 2007
New Revision: 176
Modified:
trunk/st/views.py
trunk/templates/profile.html
trunk/templates/profile_info.html
Log:
hehe, template içinde user.get_profile.bilmemne şeklinde erişebiliyormuşuz, hardcode etmeyelim bunu :) Django rulez\!
Modified: trunk/st/views.py
=================================================================
--- trunk/st/views.py (original)
+++ trunk/st/views.py Sat Jun 9 10:21:37 2007
@@ -87,14 +87,12 @@
@login_required
def show_profile(request):
- userprofile = request.user.get_profile()
return render_response(request, 'profile.html', locals())
def show_profile_info(request, name):
infoname = name
try:
info = User.objects.get(username=name)
- infoprofile = info.get_profile()
except:
info = None
Modified: trunk/templates/profile.html
=================================================================
--- trunk/templates/profile.html (original)
+++ trunk/templates/profile.html Sat Jun 9 10:21:37 2007
@@ -5,6 +5,6 @@
<br />
Kullanıcı Adı: <input type="text" value="{{ user.username }}" /> <br />
-Web Sayfası: <input type="text" value="{{ userprofile.homepage }}" /> <br />
+Web Sayfası: <input type="text" value="{{ user.get_profile.homepage }}" /> <br />
{% endblock %}
Modified: trunk/templates/profile_info.html
=================================================================
--- trunk/templates/profile_info.html (original)
+++ trunk/templates/profile_info.html Sat Jun 9 10:21:37 2007
@@ -6,7 +6,7 @@
{% if info %}
Ad: {{ info.first_name }} <br />
-Web: {{ infoprofile.homepage }} <br />
+Web: {{ info.get_profile.homepage }} <br />
{% else %}
More information about the Oi-commits
mailing list