Thanks, Luke.
I'll be working on an ajax solution, and will hopefully have something
to post about it soon.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On Thursday 31 August 2006 14:03, bk wrote:
> class CategoryPhoto(models.Model):
> category = models.ForeingKey(Category, edit_inline=models.Tabular)
> position = models.PositiveIntegerField(core=True)
> photo = models.ForeignKey(Photo, limit_choices_to={'category__pk':
> ???})
>
> ??? is wh
I've got a similar situaton with trying to use 'limit_choices_to' on an
intermediary table, but I haven't been able to get it working...
Here's a quick abbreviated example:
class Category(models.Model):
name = models.CharField(maxlength=200)
class Photo(models.Model):
name = models.CharField
On 8/31/06, Jakub Labath <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks for advice Malcolm!
>
> I feel a sample would save some time to other people. Time that i had to
> spend.
>
> class OnlyRealProfileSQL:
> def get_sql(*args):
> #select name from django_content_type where app_label
Hi,
Thanks for advice Malcolm!
I feel a sample would save some time to other people. Time that i had to spend.
class OnlyRealProfileSQL:
def get_sql(*args):
#select name from django_content_type where app_label =
'users' and model != 'profile' and model like '%p
rofile'
retu
On Thu, 2006-07-13 at 21:54 +0800, Russell Keith-Magee wrote:
>
>
> On 7/13/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
>
> Argh, bad news. Actually I asked the question because I'd like
> to use custom
> SQL in a 'limit_choices_to' option, in the admin inter
On 7/13/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
Argh, bad news. Actually I asked the question because I'd like to use customSQL in a 'limit_choices_to' option, in the admin interface. I can't figurehow to proceed, since this option only takes a dictionary of lookup
arguments, or Q objects.
On Thursday 13 July 2006 01:33, Russell Keith-Magee wrote:
> On 7/12/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
> No. Q objects do not support custom SQL - they are just wrappers that can
> be used to wrap groups of keyword search parameters (e.g.,
> article__name__contains='foo') so that the
On 7/12/06, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
Hi all,I'd like to know if Q objects support custom SQL queries, as used in extra()function?No. Q objects do not support custom SQL - they are just wrappers that can be used to wrap groups of keyword search parameters (
e.g., article__name__co
9 matches
Mail list logo