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 http://gro

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.

Re: Bi-Directional ManyToMany

2005-11-23 Thread plisk
Anyone working on this ? Would be great to have such functionality, so if noone started to do it i could give a look. Also where will this bidirectional ManyToMany select appear in itemtypes, below all the controls it has in model ?

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' ve

Re: OneToOneField bug fixed

2005-11-21 Thread plisk
Also getting error when trying to get_list, details follow model addition to posted above class PolicyConfirmation(meta.Model): policy = meta.ForeignKey(Policy) userdetail = meta.ForeignKey(UserDetail) date_added = meta.DateTimeField(default=meta.LazyDate()) code from django.mo

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: db_ta

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 addre

Re: OneToOne relations broken (#527), any workarounds ?

2005-11-16 Thread plisk
Hard to believe no one knows anything about bug marked as critical with high priority.. Ok, if i re-phrase it, any ETA available except just Milestone 1.0 ? Because its not so clear when it happens..

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 Value