Re: Changing the value of the primary key

2008-07-18 Thread J Meier
On Jul 18, 7:41 am, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > Can I ask why you would need to change PKs? > > Yes. We are a scientific institution, and I create a samples > database. Frequently a sample gets a new name, however, the old > name(s) must be kept as aliases. > > For the alias

Stability of trunk and 1.0 target: experience, testimonials?

2008-06-26 Thread J Meier
Hi folks, I'm trying to champion Django trunk/1.0 as part of a small project in a mid-sized city newspaper office. There is some worry about choosing a framework which does not currently have a stable release. I've been addressing these worries with examples of the stability of trunk and the exce

Re: initializing a model with a dicitonary

2008-07-01 Thread J Meier
On Jul 1, 10:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > c = Customer(first_name = customerdict['first_name'], last_name = > customerdict['last_name']).save() try c= Customer(**customerdict) > What am I doing > wrong? Not reading your python manual :) http://docs.python.org/ref/ca

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-07-02 Thread J Meier
Thank you, everyone. That was exactly what I needed. It looks like we'll be starting a prototype on Django trunk targeting 1.0 this week. Jim Meier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: non editable admin model

2008-07-03 Thread J Meier
I believe the permissions system, part of the auth app, can help you here. It won't prevent your admin superusers from changing things, but you can assign other users view, change and delete permissions on models. On Jul 3, 8:14 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote: > Got a weird question.

newforms - display only one radio button of a group?

2008-07-10 Thread J Meier
Hi folks. I'm building a form for entry of addresses. Users will have the option of using a structured st of input fields (appartment, street number, street name, etc.) or using a freeform input (one large input field for things like "Smith Acreage, RR5, 20 mins South of city"). They chose between

Re: Two edit_inlines between the same two models?

2008-07-11 Thread J Meier
I might try setting up Trip without direct reference to the QMs, and QMs with two references to Trip: class Trip(models.Model): ... trip stuff ... class QM(models.Model): found_during = models.ForeignKey(Trip, related_name=''found_qms") killed_during = models.ForeignKey(Trip, null=Tru

Re: Accessing Components of a MultipleChoiceField

2008-07-11 Thread J Meier
This is similar to my question about radio boxes. I hacked in a solution, but I haven't found a proper one yet. Maybe we should raise the issue on the developer's list? [0] http://groups.google.com/group/django-users/browse_thread/thread/0707e4e3665e9cb0# On Jul 11, 3:57 pm, Tim <[EMAIL PROTECT