AttributeError: 'str' object has no attribute '_default_manager'

2009-06-01 Thread Luke Graybill
I am getting this error under either mod_python or mod_wsgi, when the project functions just fine under the development server. I've pasted the more detailed traceback here (edited out some of the sensitive corporate stuff). We are using Django 1.0.2 and Python 2.6 on Ubun

Re: how can I modify automatic ordering of fields in a ModelForm?

2009-05-12 Thread Luke Graybill
Sorry, see my last reply above; dpaste.org doesn't seem to have an edit feature, so I submitted a new paste without typos. On Tue, May 12, 2009 at 1:37 PM, George Song wrote: > > On 5/12/2009 12:28 PM, Luke Graybill wrote: > > Here is how I've implemented field orde

Re: how can I modify automatic ordering of fields in a ModelForm?

2009-05-12 Thread Luke Graybill
Erm, that should be this link, my apologies: http://dpaste.org/7WiU/ On Tue, May 12, 2009 at 1:28 PM, Luke Graybill wrote: > The fields option on the inner Meta class does not appear to function that > way in 1.0.2; I presume it is a 1.1 forward feature. (doh, yeah it says > developmen

Re: how can I modify automatic ordering of fields in a ModelForm?

2009-05-12 Thread Luke Graybill
The fields option on the inner Meta class does not appear to function that way in 1.0.2; I presume it is a 1.1 forward feature. (doh, yeah it says development version only in those docs you pointed to) Here is how I've implemented field ordering for 1.0.2, and it seems pre

Re: how can I modify automatic ordering of fields in a ModelForm?

2009-05-12 Thread Luke Graybill
se the same preferred field ordering, but I'll take what I can get, atm. On Tue, May 12, 2009 at 12:32 PM, Luke Graybill wrote: > I didn't mean to imply a feature suggestion, I meant to ask if this is > possible already. If not, then is there some way to manipulate the form > __i

Re: how can I modify automatic ordering of fields in a ModelForm?

2009-05-12 Thread Luke Graybill
m I out of luck on this, or can I get some ideas on how better to handle things? On Tue, May 12, 2009 at 12:26 PM, George Song wrote: > > On 5/12/2009 11:22 AM, Luke Graybill wrote: > > Is there a good way to dynamically reorder these fields on the fly? > > Preferably, the code sh

how can I modify automatic ordering of fields in a ModelForm?

2009-05-12 Thread Luke Graybill
I am using a mixin class on some of my models that provides a few extra fields: > class Mixin(models.Model): > code = models.CharField(max_length=8, blank=True, unique=True) > hint = models.CharField(max_length=8, unique=True, null=True, > blank=True) > > class Meta: >

Re: Using managers for related object access

2008-12-05 Thread Luke Graybill
Thanks for the help, bruno. I'm glad to hear that I wasn't misreading the documentation in some fashion. I'll apply your suggestions. Luke On Thu, Dec 4, 2008 at 2:21 PM, bruno desthuilliers < [EMAIL PROTECTED]> wrote: > > > > On 4 déc, 21:39, "Luke Graybil

Using managers for related object access

2008-12-04 Thread Luke Graybill
I am attempting to use a custom manager for related object access, as documented here, but it does not appear to be working properly. Upon accessing the reverse relationship, I am getting an unfilter