Jakub,
Thank you for the suggestion. I was able to have the server I'm using
with Django switched to Apache2 and that did in fact solve the problem
I was having with mod_python.
Thanks,
Bradley Peters.
This is what I have done in these situations (I don't know if it is
proper or even good but did seem to work):
Implement _post_save on the Asset something like so ...
def _post_save(self):
# do needed imports
try:
self.get_assetstate()
catch assetstates.AssetStateDoesNotExist
On Wednesday 21 Sep 2005 7:31 pm, Jacob Kaplan-Moss wrote:
> > Also i find that i have to put the full
> > table name as it appears in the database in order to get it to work
> > with get_list
>
> Well, you're writing raw SQL here, so that's about the size of it,
> yes.
not specified in the tutor
No, sorry, that was an error I introduced when I was composing the email...
here's the real code...
class AssetState(meta.Model):
state=meta.CharField(maxlength=128)
def __repr__(self):
return self.state
class META:
admin=meta.Admin()
ordering = ['id']
class
To clarify the problems installing eggs to non-default locations:
On having to use eggs again I've discovered that this can be a problem
in that you only packages installed in "site" directories (such as
site-packages) can be autoloaded. Prior to version 0.6a1 ez_install
did not recognize that m
On 9/21/05, Rachel Willmer <[EMAIL PROTECTED]> wrote:
> class State(meta.Model):
> state=meta.CharField(maxlength=128)
> def __repr__(self):
> return self.state
>
> class Asset(meta.Model):
> definition=meta.ForeignKey(AssetDefinition)
> state=meta.F
I have two classes:
class State(meta.Model):
state=meta.CharField(maxlength=128)
def __repr__(self):
return self.state
class Asset(meta.Model):
definition=meta.ForeignKey(AssetDefinition)
state=meta.ForeignKey(AssetState,null=True,blank=True)
And the only way I can see to put it there, for non-custom views, is
using middleware, correct?
Thanks,
A.
Ooops, I just found a link in the http://code.djangoproject.com/
website.
Sorry,
On Sep 21, 2005, at 4:56 AM, Kenneth Gonsalves wrote:
doesnt work with 'get_values'.
Ah, so it doesn't -- that's a bug, which I've filed and hopefully
will be fixed shortly: http://code.djangoproject.com/ticket/532
Also i find that i have to put the full
table name as it appears in the
http://opensvn.csie.org/django_ajax/trunk/
On Wednesday 21 Sep 2005 11:24 am, Jacob Kaplan-Moss wrote:
> On Sep 21, 2005, at 12:36 AM, Kenneth Gonsalves wrote:
> > thanks, that worked, now a new problem arises. how do i do a
> > subselect to get the 'name' value of a foreign key field using
> > get_values?
>
> http://www.djangoproject.com/
12 matches
Mail list logo