thanks koenb
i'll try that this evening.
--~--~-~--~~~---~--~~
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 e
H René,
This is what I use on all my forms (I use my own modelform subclass to
insert these for date fields, but that is not relevant):
as formfield:
class DateFormField(forms.DateField):
def __init__(self, input_formats=None, *args, **kwargs):
super(DateFormField, self).__init__(*a
> That was a whole 19 hours before you posted this! It's not as if it's
> been a week with no answer. For a question like this, where even
> understanding the problem requires wading through 40 lines of code, it
> might well take a while before somebody has time and motivation to get
> there.
>
>
Would you say i am right?
I would past this on http://code.djangoproject.com/ticket/3672 where i
got the original code from
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Ok got this fixed. The problem comes if you enter invalid data. return
dateformat.format(value, self.format) would throw an exception and the
form would render to ""
class DateFormattedTextInput(FormattedTextInput):
"Renders formatted date."
def __init__(self, format=None, attrs=None):
On Tue, 2009-02-17 at 07:28 -0800, ReneMarxis wrote:
> Very sorry to bug you againe, but this is getting very critical
>
> Please can someone tell me how to format output of one DateField in a
> way that form.is_valid() is not breaking?
What do you mean by breaking? When I use the example c
What i basicly need:
Have one imput format and the same output format for modeled and
nonmodeld forms and all other functionalities should be present as
default (e.g. is.valid())
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Very sorry to bug you againe, but this is getting very critical
Please can someone tell me how to format output of one DateField in a
way that form.is_valid() is not breaking?
I allready posted this question some time before under
http://groups.google.com/group/django-users/browse_thread/th
8 matches
Mail list logo