Getting an error when i try to validate a datetime ... help ! Table "public.tarait1_teleint" Column | Type | Modifiers -----------------+-------------------------- +-------------------------------------------------------------- id | integer | not null default nextval('tarait1_teleint_id_seq'::regclass) business_name | character varying(100) | not null name | character varying(100) | company_type | character varying(100) | not null meeting_date | timestamp with time zone | city | character varying(100) | not null address | text | phone | character varying(20) | not null email | character varying(75) | notes | text | technical_notes | text | entry_date | date | x_coord | numeric(12,6) | y_coord | numeric(12,6) | follow_up | boolean | call_back | timestamp with time zone | business | integer | not null default 0
# No errors if form.is_valid(): teleint = form.save(commit=False) teleint.meeting_date = request.POST.get('meeting_date','') teleint.call_back = request.POST.get('call_back','') # Teleint form class TeleIntForm(ModelForm): class Meta: model = TeleInt # Excluding these will exclude them from form saving also # You'll have to manually include them for the object exclude = ('call_back','meeting_date') ValidationError Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---