git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corrected Waldo AccountMultiView typo and improved View error reporting / TargetURL...
[philo.git]
/
models
/
nodes.py
diff --git
a/models/nodes.py
b/models/nodes.py
index
10c51b4
..
07a5e0a
100644
(file)
--- a/
models/nodes.py
+++ b/
models/nodes.py
@@
-114,8
+114,8
@@
class View(Entity):
try:
subpath = reverse(view_name, urlconf=self, args=args or [], kwargs=kwargs or {})
try:
subpath = reverse(view_name, urlconf=self, args=args or [], kwargs=kwargs or {})
- except NoReverseMatch:
- raise ViewCanNotProvideSubpath
+ except NoReverseMatch
, e
:
+ raise ViewCanNotProvideSubpath
(e.message)
if node is not None:
return node.construct_url(subpath)
if node is not None:
return node.construct_url(subpath)
@@
-219,7
+219,7
@@
class TargetURLModel(models.Model):
try:
self.get_target_url()
try:
self.get_target_url()
- except
NoReverseMatch
, e:
+ except
(NoReverseMatch, ViewCanNotProvideSubpath)
, e:
raise ValidationError(e.message)
super(TargetURLModel, self).clean()
raise ValidationError(e.message)
super(TargetURLModel, self).clean()