DateTime field validation

2006-10-16 Thread plisk
Hi there, Is it possible somehow to validate DateTime field in admin against another DateTime field(with validators.IsLessThanOtherField for example) without writing custom validator ? With validators.IsLessThanOtherField it complains because of in all_data DateTime field is splitted to Date

Re: save and session

2005-12-12 Thread plisk
Dody Suria Wijaya wrote: Is it possible in djanggo to access current request's session variables inside _pre_save or _post_save function? I need to save current login userid into a "last_update_userid" field automatically by simply calling .save() Try hack in this thread

Re: Bi-Directional ManyToMany

2005-11-23 Thread plisk
Its not that needs to be done asap, i'll wait until new-admin merges and then give it a try.

ManyToMany problems

2005-11-22 Thread plisk
Hi, Based on the following model from django.models.auth import User class PolicyCategory(meta.Model): name = meta.CharField(maxlength=100); users = meta.ManyToManyField(User, blank=True) class META: db_table = 'intranet_policies' module_name = 'policies'

Re: OneToOneField bug fixed

2005-11-21 Thread plisk
Seems like its become broken even more, as for me with the following model from django.core import meta from django.models.auth import User class PolicyCategory(meta.Model): name = meta.CharField(maxlength=100); def __repr__(self): return self.name class META:

Re: Access request object in model's hooks and display methods

2005-11-17 Thread plisk
limodou wrote: > 2005/11/17, plisk <[EMAIL PROTECTED]>: > > > > Hi there. > > > > Seems like its not possible to access request object in hooks like > > pre_save and display methods(those are listed in list_display) ? Is it > > supposed to be lik

Access request object in model's hooks and display methods

2005-11-17 Thread plisk
Hi there. Seems like its not possible to access request object in hooks like pre_save and display methods(those are listed in list_display) ? Is it supposed to be like this by design ? If so then hardly its very convinient to use in real applications. For example, i would like to get server

OneToOne relations broken (#527), any workarounds ?

2005-11-15 Thread plisk
Hi, i'm trying to use OneToOne relation on new-admin branch and as of rev 1238 i'm getting this error when updating UserDetail entry in auto-admin Request Method: POST Request URL:http://192.168.1.156:8000/admin/intranet/userdetails/1/ Exception Type: TypeError Exception