Hi Ivan,
Given your experience, the chances are that you're right, however, I
don't see any way how we can pass a generator which will not be called
until the form class is instantiated.
We can't pass a generator function to choices (list() call will fail);
we can pass the generator expression
On Wed, Mar 24, 2010 at 4:03 AM, Shai Berger wrote:
> Hi,
>
> I've been doing some translation work and ran into the humanize.ordinal
> template tag; I found it extremely English-specific. It works by choosing
> suffixes ("st", "nd", "rd", "th") to add to numeric representation
George Karpenkov wrote:
http://code.djangoproject.com/ticket/13181
I'm -1 on complicating it this way. The ability to pass a callable for
choices is covered by passing a generator. Am I missing something?
--
You received this message because you are subscribed to the Google Groups "Django
Hi again,
On Tuesday 23 March 2010, s.kuzmenko wrote (I'm assuming you intended this to
go to the group, rather than just me):
> That's a hard one. In some languages those suffixes will depend on the noun
> they refer to. To elaborate further your French example, the equivalent
> of "1st" would
Hi,
I've been doing some translation work and ran into the humanize.ordinal
template tag; I found it extremely English-specific. It works by choosing
suffixes ("st", "nd", "rd", "th") to add to numeric representation (turning
e.g. 22 to "22nd") according to the last digit or two.
In my
Hi Django community,
Wanted to see if you might be able to help out with a near-term
project.
We're looking for a freelance contractor for front-end implementation
for our Django site. The implementation should be done using Django
template language.
Required skills: strong familiarity with
On Tue, Mar 23, 2010 at 12:20 PM, George Karpenkov
wrote:
> once again, I'm happy to write a patch if people think it's a good
> idea
Love it! :)
Regards
Rajeev J Sebastian
--
You received this message because you are subscribed to the Google Groups
"Django
once again, I'm happy to write a patch if people think it's a good
idea
On Mar 11, 5:21 pm, George Karpenkov wrote:
> Currently to add a link to object-tools one has to modify a template.
>
> I think that in most cases it would be much easier to do that through
> python
http://code.djangoproject.com/ticket/13181
On Mar 23, 4:42 pm, Jared Forsyth wrote:
> I say go for it, and post again with a patch and issue number (once you've
> created them). Your idea seems sound.
>
> Jared
>
> On Mon, Mar 22, 2010 at 11:30 PM, George Karpenkov
>