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?

X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.11.53.63 with SMTP id b63mr95435cwa;
        Sat, 20 May 2006 21:59:28 -0700 (PDT)
X-Google-Token: M6HDrQwAAAB_l_ZAIK04CSrXwNgARZza
Received: from 221.122.43.98 by j55g2000cwa.googlegroups.com with HTTP;
        Sun, 21 May 2006 04:59:28 +0000 (UTC)
From: "favo" <[EMAIL PROTECTED]>
To: "Django users" <django-users@googlegroups.com>
Subject: How to write a module level method rather than a instance method
Date: Sat, 20 May 2006 21:59:28 -0700
Message-ID: <[EMAIL PROTECTED]>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) 
Gecko/20060313 Debian/1.5.dfsg+1.5.0.1-4 Firefox/1.5.0.1,gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain

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?


--~--~---------~--~----~------------~-------~--~----~
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