git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed julian/tests.py and julian/views.py. Switched Location handling from a settin...
[philo.git]
/
models
/
nodes.py
diff --git
a/models/nodes.py
b/models/nodes.py
index
09376b8
..
10c51b4
100644
(file)
--- a/
models/nodes.py
+++ b/
models/nodes.py
@@
-234,7
+234,7
@@
class TargetURLModel(models.Model):
node = self.target_node
if node is not None and node.accepts_subpath and self.url_or_subpath:
if self.reversing_parameters is not None:
node = self.target_node
if node is not None and node.accepts_subpath and self.url_or_subpath:
if self.reversing_parameters is not None:
- view_name, args, kwargs = self.get_revers
ing
_params()
+ view_name, args, kwargs = self.get_revers
e
_params()
subpath = node.view.reverse(view_name, args=args, kwargs=kwargs)
else:
subpath = self.url_or_subpath
subpath = node.view.reverse(view_name, args=args, kwargs=kwargs)
else:
subpath = self.url_or_subpath
@@
-245,7
+245,7
@@
class TargetURLModel(models.Model):
return node.get_absolute_url()
else:
if self.reversing_parameters is not None:
return node.get_absolute_url()
else:
if self.reversing_parameters is not None:
- view_name, args, kwargs = self.get_revers
ing
_params()
+ view_name, args, kwargs = self.get_revers
e
_params()
return reverse(view_name, args=args, kwargs=kwargs)
return self.url_or_subpath
target_url = property(get_target_url)
return reverse(view_name, args=args, kwargs=kwargs)
return self.url_or_subpath
target_url = property(get_target_url)