Re: __init__() got an unexpected keyword argument 'raw_id_admin'

2009-07-16 Thread onoxo
that's it tnx! On Jul 16, 1:42 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Jul 16, 2009 at 7:04 AM, onoxo <vedran.ko...@gmail.com> wrote: > > > Hi! > > i'm having problem with raw_id_admin argument in aplication from the > > djangoproject tutori

Re: __init__() got an unexpected keyword argument 'raw_id_admin'

2009-07-16 Thread Karen Tracey
On Thu, Jul 16, 2009 at 7:04 AM, onoxo <vedran.ko...@gmail.com> wrote: > > Hi! > i'm having problem with raw_id_admin argument in aplication from the > djangoproject tutorial. only difference from orginal app is in the > raw_id_admin in Choice model > raw_id_admin wa

__init__() got an unexpected keyword argument 'raw_id_admin'

2009-07-16 Thread onoxo
Hi! i'm having problem with raw_id_admin argument in aplication from the djangoproject tutorial. only difference from orginal app is in the raw_id_admin in Choice model # this is the model.py: from django.db import models class Poll(models.Model): question = models.CharField(max_length

Using TinyMCE with django-admin breaks django's javascript with ForeignKey(raw_id_admin=True)

2008-04-25 Thread Tomas Jacobsen
Hi. Im using the latest svn of django (SVN 7457) and the latest release of TinyMCE (3.0.7) When I use TinyMCE in django-admin, my ForeignKey field, with option raw_id_admin=True, I can't select an Item. The link that usually insert the Item ID into the ForeignKey field, simply redirects me

Re: Problem when using raw_id_admin=True in ManyToManyField

2008-04-10 Thread Karen Tracey
On Thu, Apr 10, 2008 at 4:54 AM, firtzel <[EMAIL PROTECTED]> wrote: > > > > A few details on what "does not seems to work properly" looks like might > > help people help you. > > Thanks for your reply. You're absolutely right. Here are some more > details: > In the admin, when I try to save a

Re: Problem when using raw_id_admin=True in ManyToManyField

2008-04-10 Thread firtzel
> A few details on what "does not seems to work properly" looks like might > help people help you. Thanks for your reply. You're absolutely right. Here are some more details: In the admin, when I try to save a catalog with more than one BadItem, I get the following error: Exception Value:

Re: Problem when using raw_id_admin=True in ManyToManyField

2008-04-09 Thread Karen Tracey
On Wed, Apr 9, 2008 at 4:01 AM, firtzel <[EMAIL PROTECTED]> wrote: > > Hi, > > I created a model (Catalog), which is linked to its items via a m2m > relationship. > I added a raw_id_admin=True to the items field (good when I have a > long list of items). > Also,

Problem when using raw_id_admin=True in ManyToManyField

2008-04-09 Thread firtzel
Hi, I created a model (Catalog), which is linked to its items via a m2m relationship. I added a raw_id_admin=True to the items field (good when I have a long list of items). Also, for convience reasons I wanted a different pk for my items, so I added primary_key=True to one of the fields

Re: how to get raw_id_admin value from foreign key field?

2008-02-06 Thread sector119
PROTECTED]> wrote: > > > Hi ALL! > > > How can I check that model M has some primary key field with > > raw_id_admin value set to True? How can I access this option? I'm > > tired of looking for this option using dir() :) > > > P.S. I do not know name of the

Re: how to get raw_id_admin value from foreign key field?

2008-02-06 Thread sector119
Oh, sorry! I mean foreign key, not primary key :( On 6 Лют, 11:32, sector119 <[EMAIL PROTECTED]> wrote: > Hi ALL! > > How can I check that model M has some primary key field with > raw_id_admin value set to True? How can I access this option? I'm > tired of looking for

how to get raw_id_admin value from foreign key field?

2008-02-06 Thread sector119
Hi ALL! How can I check that model M has some primary key field with raw_id_admin value set to True? How can I access this option? I'm tired of looking for this option using dir() :) P.S. I do not know name of the PK field. I try to substitute ChoiceField with TextField usinc formfield_callback

Validating custom primary key values in raw_id_admin fields

2007-07-29 Thread Brendan Arnold
ref: http://groups.google.com/group/django-users/browse_thread/thread/9c9b05de723877a2/41c26d973af029d5?lnk=gst=raw_id_admin=10#41c26d973af029d5 hi there, there still seems to be this problem. i just checked out the svn about a week ago. it appears to be a problem with validation

Re: raw_id_admin and newforms

2007-03-29 Thread Adrian Holovaty
On 3/29/07, Paul Childs <[EMAIL PROTECTED]> wrote: > I understand that raw_admin_id is being removed and it will only be > available as part of the Admin inner class in a model. Does this make > it unaccessible to custom forms? Hi Paul, The raw_id_admin parameter is an admi

raw_id_admin and newforms

2007-03-29 Thread Paul Childs
My searching hasn't yielded much so here it goes... I understand that raw_admin_id is being removed and it will only be available as part of the Admin inner class in a model. Does this make it unaccessible to custom forms? If this is the case, does anyone know how to duplicate the raw_admin_id

raw_id_admin with non-integer primary key

2006-10-27 Thread atlithorn
This seems to be on the fritz again.Chgsets 785 and 790 for ticket #586 fixed this in pre-mr. I have a foreign key related table with a CharField primary key. Trying to add stuff in the admin creates a list of primary keys but save fails with "Enter only digits separated by commas." Any ideas?

Re: Rendering Many-to-Many with raw_id_admin=True in Template

2006-10-04 Thread Paul Childs
Sorry to be a pest folks. I had forgotten that the {{object}} was still accessible. So to get what I want I just had to do this: {% for part in object.part.all %} {{part}} {% endfor %} --~--~-~--~~~---~--~~ You received this message because you are

Rendering Many-to-Many with raw_id_admin=True in Template

2006-10-04 Thread Paul Childs
I have a Many-to-Many relationship between two models, Action and Part (see below). Part has thousands of records so I am using "raw_id_admin=True". This works great in the admin. I am using a generic view to create an update form for an Action. This works fine but it only display

Re: edit_inline & raw_id_admin

2006-02-25 Thread patrick k
the code i posted was fine. i just had to restart the server. patrick > > On Fri, 2006-02-24 at 15:43 +0100, va:patrick.kranzlmueller wrote: >> first think, then write -> problem solved! > > Since you are unlikely to be the only person to ever come across this > problem, how about posting

Re: edit_inline & raw_id_admin

2006-02-24 Thread Malcolm Tredinnick
On Fri, 2006-02-24 at 15:43 +0100, va:patrick.kranzlmueller wrote: > first think, then write -> problem solved! Since you are unlikely to be the only person to ever come across this problem, how about posting your solution to the list so that it shows up in a search of the archives? Thanks,

edit_inline & raw_id_admin

2006-02-24 Thread va:patrick.kranzlmueller
del): film = meta.ForeignKey(Film, edit_inline=meta.TABULAR, num_in_admin=20) star = meta.ForeignKey(Star, raw_id_admin=True) job = meta.CharField(Job) with using the above model, i only get ONE input field for the cast- members, which probably occurs because raw_id_admin does

Re: django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread Adrian Holovaty
. The same happens in SVN version. Hi Emanuele, I just tested this using Django's SVN version, and raw_id_admin=True did indeed work properly. The string representation of the related object was displayed. I didn't test this on Django 0.91, but I assume it would work there, too. We haven'

Re: django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread oggie rob
> I've just upgraded from Django0.90 to Django0.91 my production server (running a django app on a LAN). [kicks tires a bit] Yep, thar's yer problem right there. Ya put tha tires on backwards. Seriously, you should plan a little better than that! First of all it is known the 0.x is not backward

django 0.90 -> 0.91 : raw_id_admin representation changed: HELP!

2006-01-16 Thread Emanuele
Hi djangonauts, I've just upgraded from Django0.90 to Django0.91 my production server (running a django app on a LAN). Everything works well except the representation of fields with raw_id_admin=True when using admin interface. My application strongly relies on automatically generated admin

Re: raw_id_admin

2005-11-23 Thread Adrian Holovaty
On 11/23/05, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > class Article(meta.Model): > author = meta.ForeignKey(User, raw_id_admin=True) > > vews/articles.py generate form: > > Author: {{ form.author }} > {% if form.author.errors %}*** {{ form.author.err

raw_id_admin

2005-11-23 Thread Grigory Fateyev
Hello! In model i use this field: class Article(meta.Model): author = meta.ForeignKey(User, raw_id_admin=True) vews/articles.py generate form: Author: {{ form.author }} {% if form.author.errors %}*** {{ form.author.errors|join:", " }} {% endif % } If the field

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-06 Thread Adrian Holovaty
On 10/6/05, Emanuele <[EMAIL PROTECTED]> wrote: > I'm sorry but after updating (revision 786) this simple example > still has the problem I reported: Hey Emanuele, Update your Django code to revision 790, and give it another shot! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com |

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-06 Thread Emanuele
pass class Choice(meta.Model): poll = meta.ForeignKey(Poll,raw_id_admin=True) choice = meta.CharField(maxlength=200) class META: admin = meta.Admin() pass pass In admin interface I insert a poll and then when trying to insert a choice (so a poll pk) I get

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-05 Thread Adrian Holovaty
On 10/3/05, Emanuele <[EMAIL PROTECTED]> wrote: > to avoid big drop-down lists in admin interface I'm using > "raw_id_admin=True" inside ForeignKey(), so I can enter > object IDs manually. But what happens if my related object has > a _non-numeric_ custom prima

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-04 Thread Jason Huggins
Adrian Holovaty wrote: > Oooh, that's a good idea. Django already displays the __repr__() of > the corresponding record on the *change* page, but it'd be nice to do > it automatically (via Ajax) right after the field is populated on the > add page (or changed on the change page). Yup... I

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-03 Thread Adrian Holovaty
On 10/3/05, Emanuele <[EMAIL PROTECTED]> wrote: > Wouldn't it be nice (useful?) if just after inserting the pk value (in > case of "raw_id_admin=True" I mean) we could see aside the __repr__() > of the corresponding record? Just as a double check. Using manual > inse

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-03 Thread Emanuele
Thanks for the quick answer! Wouldn't it be nice (useful?) if just after inserting the pk value (in case of "raw_id_admin=True" I mean) we could see aside the __repr__() of the corresponding record? Just as a double check. Using manual insertion of pk values is a good alternative wh

Re: big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-03 Thread Adrian Holovaty
On 10/3/05, Emanuele <[EMAIL PROTECTED]> wrote: > to avoid big drop-down lists in admin interface I'm using > "raw_id_admin=True" inside ForeignKey(), so I can enter > object IDs manually. But what happens if my related object has > a _non-numeric_ custom primary k

big drop-down lists, raw_id_admin and custom primary key: a bug?

2005-10-03 Thread Emanuele
Hi, to avoid big drop-down lists in admin interface I'm using "raw_id_admin=True" inside ForeignKey(), so I can enter object IDs manually. But what happens if my related object has a _non-numeric_ custom primary key? In my case I've a string as a custom primary key and I'd lik