filter on a foreign key field

2009-03-12 Thread saeb
elf. so if I have 20 accounts, I see 20 true/false on the right side bar. Is there a way to filter on a foreign key field? I am trying to filter user objects based on accounts foreign key field. Thanks for looking. saeb --~--~-~--~~~---~--~~ You received this mes

Re: manage.py test doesn't run tests

2009-03-05 Thread saeb
x27;t run the test. But if I do manage.py test App1.ShortTest.add_test the test runs fine. Thanks for looking into it. Saeb On Mar 5, 5:43 pm, Malcolm Tredinnick wrote: > On Thu, 2009-03-05 at 09:05 -0800, saeb wrote: > > My project is divided into 3 apps, and all 3 apps have a "tests

Re: manage.py test doesn't run tests

2009-03-05 Thread saeb
yes, it does. But few of the models.py are empty. whats weird is if I try to run the tests individually, they run fine, but I can't run then with manage.py test thanks for replying. On Mar 5, 11:52 am, Alex Gaynor wrote: > On Thu, Mar 5, 2009 at 12:17 PM, saeb wrote: > &g

Re: manage.py test doesn't run tests

2009-03-05 Thread saeb
Sorry for multiple posts On Mar 5, 11:16 am, saeb wrote: > My project is divided into 3 apps, and all 3 apps have a "tests.py" > file. When I run manage.py test, none of the tests run. But if I run > manage.py test app1.TestCase1.test1 , it runs fine. For some reason &g

manage.py test doesn't run tests

2009-03-05 Thread saeb
I missing? Thanks, saeb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send em

manage.py test doesn't run tests

2009-03-05 Thread saeb
I missing? Thanks, saeb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send em

manage.py test doesn't run tests

2009-03-05 Thread saeb
I missing? Thanks, saeb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send em

Databrowse pagination

2009-02-25 Thread saeb
My admin webpage gets stuck and often fails on large database when I use Databrowse. I think it needs pagination, is there a way to get around this? I really like the Databrowse feature as a read-only tool, it would be great if someone helps me out in this issue. Thanks, saeb

Re: FileInput question

2008-09-17 Thread saeb
I figured it out. If someone wants to know how to do it, here is the snippet: http://www.djangosnippets.org/snippets/1063/ On Sep 17, 9:54 am, saeb <[EMAIL PROTECTED]> wrote: > Can some please help me with this issue? I have been trying all sorts > of stuff for past few hour

Re: FileInput question

2008-09-17 Thread saeb
gain. On Sep 16, 11:47 pm, saeb <[EMAIL PROTECTED]> wrote: > Hi, > >    I am trying to send a file as an attachment in an email.  It works > fine when I attachment file is hardcoded. But when I try to use > FileInput widget, I just get the filename in request.FILES dictionary. &g

FileInput question

2008-09-16 Thread saeb
Hi, I am trying to send a file as an attachment in an email. It works fine when I attachment file is hardcoded. But when I try to use FileInput widget, I just get the filename in request.FILES dictionary. Is it possible to get full path of the file? Am I using wrong widget for this purpose?

Re: Dictionary key-value pair

2008-08-28 Thread saeb
tml', { 'user_details': user_details, 'user_acct_details': trader_acct_details, 'order_details': order_details }) On Aug 28, 11:49 am, David Zhou <[EMAIL PROTECTED]> wrote: > On Aug 28, 2008, at 12:45 PM, saeb wrote: > > > order is important

Re: Dictionary key-value pair

2008-08-28 Thread saeb
g Rating' : 3.6} so when I render I would these to appear in order. thanks! On Aug 28, 11:36 am, David Zhou <[EMAIL PROTECTED]> wrote: > On Aug 28, 2008, at 12:34 PM, saeb wrote: > > > I am using a dictionary to render a template. But my rendered > > template has

Dictionary key-value pair

2008-08-28 Thread saeb
I am using a dictionary to render a template. But my rendered template has the key-value pair which are out of order. Since dictionary uses a hash table to store it elements, I can't rely on order of these key-value pairs. Is there any other way to render bunch of key-value items from a view

Re: Outputting PDF

2008-08-25 Thread saeb
forgot to mention, that I did HttpResponse(response) and there was just gibberish displayed... On Aug 25, 10:00 am, saeb <[EMAIL PROTECTED]> wrote: > Thanks, I did use form validation as inhttp://dpaste.com/73704/but I > couldn't get the validation to work. I wasn't

Re: Outputting PDF

2008-08-25 Thread saeb
PROTECTED]> wrote: > On Mon, Aug 25, 2008 at 9:01 AM, saeb <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Following is my view.http://dpaste.com/73677/ > > In the template I have 2 buttons, one is to retrieve results for the > > id typed in the input box and o

Outputting PDF

2008-08-25 Thread saeb
DataError saying -- " invalid input syntax for integer: "" ". Can anyone give me a better idea to achieve this? thanks saeb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: manager select_related()

2008-08-19 Thread saeb
s quite a lot wrong with this code, quite apart from the > list_display issue. Comments interspersed below. > > On Aug 19, 2:33 pm, saeb <[EMAIL PROTECTED]> wrote: > > > > > No, that is not the real code. The real code as you mentioned is split > > into models.

Re: manager select_related()

2008-08-19 Thread saeb
in): list_display =( 'id', 'acct_name' ) On Aug 19, 8:04 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-18 at 20:50 -0700, saeb wrote: > > > Sorry to ask a stupid question, but following is my basic model > > structure. I want to cre

manager select_related()

2008-08-18 Thread saeb
Sorry to ask a stupid question, but following is my basic model structure. I want to create a custom manager for a class which has a foreignKey to another class. And to call that manager function in list display to display all the related properties. Am I doing it right? I don't see any associat