Re: Re: django/core/meta

2006-09-01 Thread James Bennett
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

Re: django/core/meta

2006-09-01 Thread brian corrigan
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

Re: django/core/meta

2006-09-01 Thread Chris Long
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

Re: Re: django/core/meta

2006-09-01 Thread James Bennett
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

Re: django/core/meta

2006-09-01 Thread brian corrigan
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

Re: django/core/meta

2006-09-01 Thread Jacob Kaplan-Moss
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

Re: django/core/meta

2006-09-01 Thread Adrian Holovaty
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?

Re: django/core/meta

2006-09-01 Thread brian corrigan
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

Re: django/core/meta

2006-09-01 Thread brian corrigan
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 --~--~-~--~

Re: django/core/meta

2006-09-01 Thread Jacob Kaplan-Moss
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