On Sat, 2006-05-20 at 21:59 -0700, favo wrote:
> I found below in document:
> """
> If your model method starts with "_module_", it'll be a module-level
> function instead of a method. Otherwise, custom module-level functions
> have the same namespace as custom methods.
> """
> is there any example?
> I have add a method in model but can't find it in module level?

This sounds like something from the pre-magic-removal merge. If you want
a module level function in the current code, you should just define it
as you normally would.

Can you post a link to the piece of documentation in question. Note that
if it's anything underneath this link --
http://www.djangoproject.com/documentation/models/ -- that those
documents have not been updated after the merge (they are somewhat
auto-generated from the test suite).

Regards,
Malcolm


X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.54.68.17 with SMTP id q17mr161716wra;
        Sat, 20 May 2006 22:23:39 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from bigben2.bytemark.co.uk (bigben2.bytemark.co.uk [80.68.81.132])
        by mx.googlegroups.com with ESMTP id v11si569754cwb.2006.05.20.22.23.38;
        Sat, 20 May 2006 22:23:38 -0700 (PDT)
Received-SPF: neutral (googlegroups.com: 80.68.81.132 is neither permitted nor 
denied by best guess record for domain of [EMAIL PROTECTED])
Received: from sharp.pointy-stick.com ([80.68.90.23])
        by bigben2.bytemark.co.uk with esmtp (Exim 4.52)
        id 1FhgPi-0001x6-7U
        for django-users@googlegroups.com; Sun, 21 May 2006 05:23:38 +0000
Received: from counterweight.tredinnick.org (cust7071.nsw01.dataco.com.au 
[203.171.88.159])
        by sharp.pointy-stick.com (Postfix) with ESMTP id 81451C38C
        for <django-users@googlegroups.com>; Sun, 21 May 2006 15:23:35 +1000 
(EST)
Subject: Re: How to write a module level method rather than a instance
        method
From: Malcolm Tredinnick <[EMAIL PROTECTED]>
To: django-users@googlegroups.com
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain
Date: Sun, 21 May 2006 15:23:29 +1000
Message-Id: <[EMAIL PROTECTED]>
X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) 

On Sat, 2006-05-20 at 21:59 -0700, favo wrote:
> I found below in document:
> """
> If your model method starts with "_module_", it'll be a module-level
> function instead of a method. Otherwise, custom module-level functions
> have the same namespace as custom methods.
> """
> is there any example?
> I have add a method in model but can't find it in module level?

This sounds like something from the pre-magic-removal merge. If you want
a module level function in the current code, you should just define it
as you normally would.

Can you post a link to the piece of documentation in question. Note that
if it's anything underneath this link --
http://www.djangoproject.com/documentation/models/ -- that those
documents have not been updated after the merge (they are somewhat
auto-generated from the test suite).

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to