Re: unique_together Validator for a model with an (editable=False) field

2007-04-09 Thread Mark Soper
n cls = sender cls.add_to_class('AddManipulator', AutomaticAddManipulator) cls.add_to_class('ChangeManipulator', AutomaticChangeManipulator) """ - On Apr 6, 12:54 pm, "Mark

Re: unique_together Validator for a model with an (editable=False) field

2007-04-06 Thread Mark Soper
in the URL and it kind of assumes all the other data is valid. It's very hacky -- I'm using it in one application where there was no other choice, but I hate it as a solution. On Apr 6, 12:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-04-05 at 21:12 -07

unique_together Validator for a model with an (editable=False) field

2007-04-05 Thread Mark Soper
I'm trying to figure out the best way to validate a unique_together constraint. The relevant parts of the model are here: -- class Thesis(models.Model): thesis_name = CharField('Thesis Name', maxlength=50, core=True, validator_list=[???])

Best way to implement user-specific content?

2007-03-21 Thread Mark Soper
Anyone know of the recommended way to set up user-specific content, where each user (except the admin) would see only his content, regardless of the view being used to access it? Assume that content is associated with users via the threadlocals method (http:// code.djangoproject.com/wiki/CookBook