A simple use for multidb... is this possible yet?

2009-07-19 Thread Jon Loyens
Hi everyone (particularly those working on multidb), I have a pretty simple use case that involves use of multidb support and I was wondering if the code base for multidb is far enough along to help me out on this. Basically, I have a legacy enterprise db that I've created working models for

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Jon Loyens
Oops... I meant dpaste.com On Feb 3, 8:54 am, Jon Loyens <jonloy...@gmail.com> wrote: > Alex, would you mind posting your complete template at dpaste.org for > us to look at?  It might clarify how you're trying to do the output. > > Thanks, > > Jon. > > On Feb 2, 11

Re: Displaying Data from Multiple Tables

2009-02-03 Thread Jon Loyens
Alex, would you mind posting your complete template at dpaste.org for us to look at? It might clarify how you're trying to do the output. Thanks, Jon. On Feb 2, 11:37 pm, Alexiski wrote: > > On Mon, 2009-02-02 at 21:21 -0800, Alexiski wrote: > > > Hi Malcolm, > > >

Re: Where are all the Django jobs?

2009-01-11 Thread Jon Loyens
. It's in those situations that you'll get to grab your favorite tool: Django. Jon Loyens Thinktiv, Inc. On Jan 11, 1:14 am, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sat, 2009-01-10 at 15:38 -0700, David Lindquist wrote: > > First, I understand that the world econom

Re: Does Django have a function that can be called by every view function ?

2008-12-01 Thread Jon Loyens
Another +1 for decorators. In fact, the example David S uses authentication and logins as an example of what he wants to do and its already handled as a decorator thus giving him a decent pattern to follow. David S, I'd suggest you look up the @login_required decorator and even look through the

Re: Deleting a Model with ForeignKey relationship where null=True in Admin causes IntegrityError

2008-10-09 Thread Jon Loyens
Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-10-09 at 09:28 -0700, Jon Loyens wrote: > > [...] > > > Is this a bug I'm seeing or am I missing something in either my models > > or configuration?  Or do I not understand how ForeignKeys where > > null=True are

Re: Deleting a Model with ForeignKey relationship where null=True in Admin causes IntegrityError

2008-10-09 Thread Jon Loyens
As a note... I've worked around this for the time being by setting cascade on delete explicitly in db. That said, I'd still like to know if this is a bug or if I'm doing something wrong with my models. Jon. On Oct 9, 11:28 am, Jon Loyens <[EMAIL PROTECTED]> wrote: > See the foll

Deleting a Model with ForeignKey relationship where null=True in Admin causes IntegrityError

2008-10-09 Thread Jon Loyens
See the following set of models: class Mom(models.Model): name = models.CharField(max_length=80) def __unicode__(self): return self.name class Dad(models.Model): name = models.CharField(max_length=80) def __unicode__(self): return self.name class

Schema Evolution Choices?

2008-09-01 Thread Jon Loyens
Hi guys, I have a small project coming up that I think having some sort of schema evolution facilities will be handy on. I was wondering what the current and best project choices for schema evolution are? I was leaning towards django-evolution until I saw a post from Russell saying that he

Re: Composite Forms? Are widgets the right thing to use?

2008-08-24 Thread Jon Loyens
Thanks guys! Using multiple forms + prefixes is exactly what I need! Would be nice if there was some global wrapper though so you could do validation amongst the forms but beggars can't be choosers. On Aug 23, 2:28 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Aug 23, 2:33 am, Jeff

Composite Forms? Are widgets the right thing to use?

2008-08-22 Thread Jon Loyens
Hi all, I have a sight where I need to generate forms that are made up of two or three other forms. For example I have New User sign up form that accepts user information (user name, name, password), a shipping and a billing address (with the same usual field) and credit card info. Sometimes, I

Re: string indices must be integers error in admin - don't know where to start debugging

2008-07-08 Thread Jon Loyens
Problem solved. Just need to copy in my local version of Django On Jul 7, 6:29 pm, Jon Loyens <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I've got a problem and I don't even know where to start debugging > it... there seems to be a difference between the way my app is >

string indices must be integers error in admin - don't know where to start debugging

2008-07-07 Thread Jon Loyens
Hi everyone, I've got a problem and I don't even know where to start debugging it... there seems to be a difference between the way my app is behaving between my local environment and my deployment environment. Hopefully you guys can give me some idea where to start. I've written a small PR

Re: Admin page doesn't show calendar popup

2008-04-20 Thread Jon Loyens
Check that the localizations got installed when you installed .96. This was a problem I had... the installer didn't install the admin templates or any of the localization files and I had to copy them in manually. Jon. On Apr 20, 10:53 am, sinker <[EMAIL PROTECTED]> wrote: > Switching to trunk

obfuscating form fields in templates and admin

2008-04-20 Thread Jon Loyens
Hi all, I'm working on an application where a user has an a special number assigned to them. This account number must be editable both by the user and in admin. I want the number to be obfuscated in the form when it is initially displayed but then when overwritten by a customer service rep (in