Added model validation to Pages; for a page to be valid, its related template must...
authorStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 19 Oct 2010 14:49:59 +0000 (10:49 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 19 Oct 2010 14:54:29 +0000 (10:54 -0400)
commit0133fd1af27b193ce3cb39073e67086561b787c3
treefeebc2347c6d422a06fdb55bb590a37a21deed12
parent8c6ffb8e54f201a0fb7776fdd865bbbb3d42a29b
Added model validation to Pages; for a page to be valid, its related template must also be valid. Ordinarily, the template would need to be valid in order to exist; however, this should help catch cases where, for example, changes on a filesystem template affect the validity of a database template. Addresses the remaining issues with bug #14.
models/pages.py