Hi there,
New user, I'm going through the tutorial, except with our current database
that we have here (so instead of the 'polls' app I'm making something
similar to what we already have). Everything's fine up to a point, but
now I am creating a public view (tutorial3) and it can't find the
modu
Hi there,
In my existing application, I have a user object/table to track all of our
users. Users optionally have a foreign_info object with them too, if
they are foreigners.
So it's a one-to-one relationship. Here's simplified:
class User:
userbase_id = ... the primary key
lots of ot
Hi there-
I am getting the following exception. It doesn't show up in django's
flashy exception display, but just as text (because it happens while
rendering).
Dunno why it happens. But it usually happens after I add some sort of
relation information and then try to look at it through admin.
Hi there -
I'll just start into the example I'm wondering about without introducing
it. We have a bunch of users, along with the 'resources' they have access
to.
So, I can do this:
me = persons.get_object(username__exact='bailey')
me.get_resourcerecord(resource=resourcetypes.get_object(short_n
On Tue, 7 Mar 2006, Russell Keith-Magee wrote:
> It's a little difficult to understand exactly what it is you want without a
> concrete model example - but if I'm understanding you correctly, the answer
> is 'it may be possible with trunk/0.91, and is definitely possible with
> magic-removal'.
>
Hey there,
I have a django class Person which is obviously information on a person.
Then I have a relation class from Person<->Person that looks like this:
class Sponsorship(meta.Model):
sponsored = meta.ForeignKey(Person, related_name='sponsor', core=True,
edit_inline=meta.TABULAR)
sponsor
ped that.
Thus this leaves me no working option. That sucks. I can work around it
at the moment (I have other apps to work on besides the admin iface)
Alan
On Sat, 11 Mar 2006, Russell Keith-Magee wrote:
>
> On 3/11/06, Alan Bailey <[EMAIL PROTECTED]> wrote:
> >
> > So
Hello,
I know I can write custom SQL with the db cursor and it returns raw
rows... but I would like (and it'd be easy to implement) a way to use
custom SQL (specifically only WHERE clauses) when doing a get_list or
get_object.
For example:
foo = users.get_list(status__exact='active', custom_sql
Thanks! Silly me. But maybe a mention in the custom SQL section pointing
to the where / tables stuff would be good.
Alan
On Wed, 22 Mar 2006, [EMAIL PROTECTED] wrote:
>
> Alan Bailey wrote:
> > I know I can write custom SQL with the db cursor and it returns raw
> > rows..
9 matches
Mail list logo