Intermediary model and filter_horizontal problem

2009-08-05 Thread Jean Stebens
Hi All, My Problem: I'm adapting the generated models from inspectdb in order to use a legacy application with django. The application database schema has intermediary tables in it - I'd want to use the nice "filter_horizontal" instead of inlines. Inlines do work, so the intermediary table

Re: Custom model field and Django-admin -- error

2009-08-10 Thread Jean Stebens
Alex Gaynor wrote: > On Mon, Aug 10, 2009 at 8:45 AM, BenW wrote: > >> Hello, >> >> I'm working with a legacy database that stores datetimes as unsigned >> ints. Rather than do the conversion with properties on the model I've >> written a custom Field 'UnixDateTimeField':

Intermediary model and filter_horizontal problem

2009-08-15 Thread Jean Stebens
Hi All, My Problem: I'm adapting the generated models from inspectdb in order to use a legacy application with django. The application database schema has intermediary tables in it - I'd want to use the nice "filter_horizontal" instead of inlines. Inlines do work, so the intermediary table

Admin inlines onetoone related object not saved

2009-08-28 Thread Jean Stebens
Hi there, I have the following models: class A(models.Model): id = models.AutoField(primary_key=True) class B(models.Model): mya = models.OneToOneField(A, primary_key=True) text = models.TextField(default='Init') In admin interface, I have used an inline to include B when

How to avoid listing all objects initially until searching

2009-12-11 Thread Jean Stebens
Hi there, I have a rather large set of objects in my database, around 200k, using the django admin interface and listing them is always terrible slow as it always fetches all entries (paginated). I usually just run a few searches or add some filters on the list. Is there a way to have the list

Re: How to avoid listing all objects initially until searching

2009-12-11 Thread Jean Stebens
Daniel Roseman wrote: > On Dec 11, 2:51 pm, Jean Stebens <neme...@twilightzone.lu> wrote: >> Hi there, >> >> I have a rather large set of objects in my database, around 200k, using >> the django admin interface and listing them is always terrible slow as >> i

Re: How to avoid listing all objects initially until searching

2009-12-11 Thread Jean Stebens
Tom Evans wrote: > On Fri, Dec 11, 2009 at 4:04 PM, Jean Stebens <neme...@twilightzone.lu> wrote: >> Daniel Roseman wrote: >>> On Dec 11, 2:51 pm, Jean Stebens <neme...@twilightzone.lu> wrote: >>>> Hi there, >>>> >>>> I hav