Re: Problems creating model.

2006-04-19 Thread Michael Radziej
Russell Keith-Magee schrieb: > Unfortunately, this isn't possible in 0.91/trunk. However, in the > magic-removal stream, you can forward reference a model using the string > version of the model name. No, not really. The only string is "self" ;-) I tried it a few weeks ago. But if you can correc

Re: Accessing custom managers in O2M2O / using RelatedManager

2006-04-19 Thread Luke Plant
> Am I approaching the problem in the wrong way? how can i access custom > manager functions for Bar, via baz? It throws an error complaining of > RelatedManager...how can I write my own RelatedManager? What error does it throw? Luke --~--~-~--~~~---~--~~ You r

How soon will a stable magic-removal version probably be released?

2006-04-19 Thread flyaflya
Several days? several weeks? several months? or several years? If too far,I will use 0.91 version. -- http://www.flyaflya.com powered by pygame+python --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: How soon will a stable magic-removal version probably be released?

2006-04-19 Thread Russell Cloran
Hi, Have a look at : http://groups.google.com/group/django-developers/browse_thread/thread/ea36b87b30cc9e1/34d4734058c2285e Russell On Wed, 2006-04-19 at 17:17 +0800, flyaflya wrote: > Several days? several weeks? several months? or several years? > If too far,I will use 0.91 version. > > -- >

Re: Custom Manipulator

2006-04-19 Thread PythonistL
Ian, Thanks for your reply. I implemented custom manipulator for ADDing but do not know how to do that for CHANGING. class ProductManipulator(formfields.Manipulator):# ADD manipulator def __init__(self): .

Re: Problems creating model.

2006-04-19 Thread Russell Keith-Magee
On 4/19/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee schrieb: > > Unfortunately, this isn't possible in 0.91/trunk. However, in the > > magic-removal stream, you can forward reference a model using the string > > version of the model name. > > No, not really. The only str

Re: Problems creating model.

2006-04-19 Thread Michael Radziej
Russell Keith-Magee schrieb: > On 4/19/06, Michael Radziej <[EMAIL PROTECTED]> wrote: >>No, not really. The only string is "self" ;-) > > > To clarify my point: > > 0.91 - "self" is the only string > magic-removal: "self" and "model-name" are allowed > > If you have a use case in magic-removal

Re: possible to filter ManyToMany results?

2006-04-19 Thread nkeric
Luke Plant wrote: > As I understand it, Django should be able to do this query no problem. > I think there may be a mistake in what you posted though - IIRC, I > would have expected the method name to be 'get_articles_list' not > 'get_article_list', since you defined it as 'articles = > meta.ManyT

mange.py sql weirdness in MR

2006-04-19 Thread njharman
[Sorry if this should be on django-developer instead] r2714 of the magic-removal branch I have models/* and not a models.py in my app directory. #myapp/models/__init__.py from adventure import Story class Foo(models.Model): pass 'manage.py sql' produces output for Foo model but not Story m

Re: Problems creating model.

2006-04-19 Thread njharman
Russell Keith-Magee wrote: > If you have a use case in magic-removal where "self" is the only > allowed string, then you have probably found a bug. Is this the case, [Jumpin into youses conversation with just such a bug] class Foo(models.Model): myfield = models.OneToOneField('SomeModel', to

Re: Custom Manipulator

2006-04-19 Thread Ian Clelland
On 4/19/06, PythonistL <[EMAIL PROTECTED]> wrote: > As to CHANGE manipulator, I do not know how to fill in (prepopulate)the > form with the data, being changed, from the database. Any idea? If you want to pre-populate the form data, you just need to be able to set new_data to hold the data from t

Foriegn Key data retrieval question...

2006-04-19 Thread Esteban
I am trying to do something pretty basic here -- I even worked out how to do it earlier but now I have forgotten so I need a nudge in the right direction. I have a model set up where an item has an owner, simple foreign key relationship. I have checked everything I modeled works nicely in the Ad

Field Description in FormWrappers

2006-04-19 Thread Fawad Halim
Hi, Is it possible to retrieve the description of a field in a FormWrapper in the template? I'm able to get the field name using {{ form.field.field_name }}, but I'd like the verbose name to appear on the form. Regards -fawad --~--~-~--~~~---~--~~ You rece

Re: maxlength in the Admin site

2006-04-19 Thread argus
Is there any reason that there's not a way to specify/override the size of the form field that gets used in templates (separately from what gets used in the admin interface)? I can't think of one, and it's been something of a thorn in my side recently, so I figured I'd ask :) I'm reluctant to ha

Re: maxlength in the Admin site

2006-04-19 Thread Joseph Kocherhans
On 4/19/06, argus <[EMAIL PROTECTED]> wrote: > > Is there any reason that there's not a way to specify/override the size > of the form field that gets used in templates (separately from what > gets used in the admin interface)? I can't think of one, and it's been > something of a thorn in my side

Re: maxlength in the Admin site

2006-04-19 Thread Joseph Kocherhans
On 4/19/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > On 4/19/06, argus <[EMAIL PROTECTED]> wrote: > > > > Is there any reason that there's not a way to specify/override the size > > of the form field that gets used in templates (separately from what > > gets used in the admin interface)? I

Re: maxlength in the Admin site

2006-04-19 Thread argus
Actually, it was really easy. As in "four lines" easy. I haven't done extensive testing with it, but a quick run through seems to demonstrate that it does what I want it to do. Best of all, you only have to modify one file -- core/meta/fields.py: 1) Add a new param "length=None" to the __init__

Trac error on code.djangoproject.com

2006-04-19 Thread Nebojsa Djordjevic
http://code.djangoproject.com/ Oops... Trac detected an internal error: database is locked Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler dispatch_request(mpr.path_info, mpr, env) File "/usr/lib/python2.3/

Re: Trac error on code.djangoproject.com

2006-04-19 Thread limodou
On 4/20/06, Nebojsa Djordjevic <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ > > Oops... > > Trac detected an internal error: > > database is locked > Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", > line 206, in hand