On 9/1/06, brian corrigan <[EMAIL PROTECTED]> wrote:
> the unique fields are not created.
> the same happens for unique_together=(("distribution_list",
> "subscriber"),)
I think the confusion here is over the word 'meta'.
Once upon a time, you defined models by starting out with:
from django.co
Cheers Chris,
Finally saw that but I have tried it and have the following problem...
The code:
distribution_list = models.ForeignKey(DistributionList)
subscriber = models.CharField(maxlength=30)
unique_together=((distribution_list, subscriber),)
gives the following sql
"id
See:
http://www.djangoproject.com/documentation/model_api/#unique-together
Cheers,
Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@goog
On 9/1/06, brian corrigan <[EMAIL PROTECTED]> wrote:
> Oops... Sorry about that, airhead moment. Is there a similar function
> to unique_together now that can be used?
Take a look at the model documentation[1]; most of the names of the
'meta' and 'admin' options on models haven't changed, they've
Jacob Kaplan-Moss wrote:
> On Sep 1, 2006, at 9:17 AM, brian corrigan wrote:
> > However with the project I'm working on, I can't change the Django
> > version I'm working on. I have tried doing an SVN update on the core
> > directory but meta was not included in it. Is there anyway I can
> > dow
On Sep 1, 2006, at 9:17 AM, brian corrigan wrote:
> However with the project I'm working on, I can't change the Django
> version I'm working on. I have tried doing an SVN update on the core
> directory but meta was not included in it. Is there anyway I can
> download the relevant files/folders?
W
On 9/1/06, brian corrigan <[EMAIL PROTECTED]> wrote:
> However with the project I'm working on, I can't change the Django
> version I'm working on. I have tried doing an SVN update on the core
> directory but meta was not included in it. Is there anyway I can
> download the relevant files/folders?
Also...
I have downloaded the .tar.gz file from the django site and browsed to
django/core and again there is no mention of meta.
Is there something I'm missing?
If there is no work around this for me, is there any other way I can
implement the following code...
distribution_list = meta.Fo
Thanks Jacob,
However with the project I'm working on, I can't change the Django
version I'm working on. I have tried doing an SVN update on the core
directory but meta was not included in it. Is there anyway I can
download the relevant files/folders?
Thanks again,
Brian
--~--~-~--~
Hi Brian --
Django's actually undergone some pretty sweeping changes since you
last played with it. Probably the best place to start is by reading
the 0.95 release notes (http://www.djangoproject.com/documentation/
095_release_notes/) for an overview of what's changed.
That page will event
10 matches
Mail list logo