fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Final mark as an average from individual marks
[edumed.git]
/
contact
/
forms.py
diff --git
a/contact/forms.py
b/contact/forms.py
index
e369e95
..
8fa0149
100644
(file)
--- a/
contact/forms.py
+++ b/
contact/forms.py
@@
-62,8
+62,8
@@
class ContactForm(forms.Form):
site = Site.objects.get_current()
dictionary = {
'form_tag': self.form_tag,
site = Site.objects.get_current()
dictionary = {
'form_tag': self.form_tag,
- 'site_name':
site.name
,
- 'site_domain':
site.domain
,
+ 'site_name':
getattr(self, 'site_name', site.name)
,
+ 'site_domain':
getattr(self, 'site_domain', site.domain)
,
'contact': contact,
}
context = RequestContext(request)
'contact': contact,
}
context = RequestContext(request)