I create two m2mfields which reference to the same class, such as this:
class Name(Model):
name = CharField (maxlength=50)
def __repr__(self):
return self.name
class People(Model):
first_name = ManyToManyField (Name)
last_name = ManyToManyField (Name)
def __repr__(se
On 9/1/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> This ticket has patches, but they haven't been merged.
>
> Adrian, will this be accepted or reviewed?
>
> http://code.djangoproject.com/ticket/225
Ah, I'd lost track of that one. Yes, that'll definitely be reviewed
soon. I don't have access t
On 8/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I read from the website that new database engines are coming soon.
> Is MS SQL one of them by any chance?
This ticket has patches, but they haven't been merged.
Adrian, will this be accepted or reviewed?
http://code.djan
Can we get a report which takes wildcards for ticket summary and description?
With a small number of active tickets, it's not such an issue, but
it's at 160 and climbing slowly.
On Thursday 01 September 2005 02:11 am, Adrian Holovaty wrote:
> I added that to the model docs a couple of days ago:
> http://www.djangoproject.com/documentation/model_api/#models-across-files
>
> If it's not sufficient, I can definitely improve it. How does it look?
Oh, I hadn't seen that. (I
On 8/31/05, Matthew Marshall <[EMAIL PROTECTED]> wrote:
> How disgusting! While working on a test case, (and tweaking the test
> framework to accomodate a second app,) I found that in my model files I was
> doing:
>
> >>> from project.categories.modules import categories
>
> rather than:
>
>
On Thursday 01 September 2005 12:50 am, Adrian Holovaty wrote:
> Hmmm...Could you make a test case for this? We use many-to-many
> relationships to core.Site all the time and don't have problems.
How disgusting! While working on a test case, (and tweaking the test
framework to accomodate a seco
Sounds good to me!
On Aug 31, 2005, at 7:41 PM, Adrian Holovaty wrote:
Hey all,
This London Django meetup got me thinking. Is anybody interested in
having a Washington, D.C., Django meetup? I'll be in town the weeks of
Sept. 5 and Sept. 12 and would love to get together with fellow Django
fo
On 8/31/05, Matthew Marshall <[EMAIL PROTECTED]> wrote:
> Is anyone using M2M fields that cross apps? I am trying to do so, but am
> getting strange results.
> [...]
> I noticed that there is no test case for this. Is anyone currently doing it?
> Or am I the only one that it doesn't work for?
H
Is anyone using M2M fields that cross apps? I am trying to do so, but am
getting strange results.
I have two models: categories.Category and items.Item. Item has a M2M link to
Category.
Everything seems to work fine, except that the 'get_related_list' methods seem
to be messed up. From loo
Hey all,
This London Django meetup got me thinking. Is anybody interested in
having a Washington, D.C., Django meetup? I'll be in town the weeks of
Sept. 5 and Sept. 12 and would love to get together with fellow Django
folks.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagoc
On Tue, Aug 30, 2005 at 08:13:34PM -0500, Adrian Holovaty wrote:
> Regarding the error, you'll need to make sure your __init__.py file
> contains "myapp" in its "__all__" variable, assuming "myapp.py" is the
> name of your model module. See
> http://www.djangoproject.com/documentation/model_api/#
Ok, I guess that my problem is two fold. The first is that the
generated SQL tried to create two tables called polls_polls. And I see
now that adding
class META:
module_name = 'tigger'
to the Tigger class resolves that issue.
My second issue was in thinking that the table generated f
On 8/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> class Tigger(Poll):
> bounce = meta.CharField(maxlength=200)
>
> def __repr__(self):
> return self.bounce
> [...]
> This isn't quite right ;-) Anyone else come across this useage pattern?
> Are there any ways to have Djang
I have a circumstance where I'd like to be able to have a class that
inherits from a class that inherits from meta.Model. For example, if I
wanted to create a new class called Tigger that inherits from the Poll
class as used in the tutorial:
class Tigger(Poll):
bounce = meta.CharField(maxleng
Hi all,
I read from the website that new database engines are coming soon.
Is MS SQL one of them by any chance?
Thanks.
Sam
On Wed, 2005-08-31 at 14:28 +0400, Maniac wrote:
> I use Django's model objects to store a users environment. It's not just
> some options like prefered color or something instead it's a full blown
> model. To be specific it's an application for ordering printing of
> digital pictures. The use
Chris Ryland wrote:
I'm still learning Django, but it seems like you'd have an easier time
if you went with the general flow and simply used Django's ORM for
everything, rather than trying to do something special for this case.
This is what I'm trying to do.
I use Django's model objects to
Hi all,
Just a quick reminder, but on the 5th of september we're having a
Rails & Django meetup in London - the more the merrier!
More details: http://www.magpiebrain.com/archives/2005/08/17/meetup
--
sam
http://www.magpiebrain.com/
Hi,
What I've found is that any user with appropriate (modify, delete)
permission can modify and delete other user's data in admin mode.
Is there a way to manage only their own data in admin screen ?
Thanks in advance for any comment or help.
Suhku
20 matches
Mail list logo