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
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
Its not that needs to be done asap, i'll wait until new-admin merges
and then give it a try.
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 ?
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
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
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
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
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
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..
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
11 matches
Mail list logo