Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating a recurring entry #2

Open
flegoff opened this issue Apr 13, 2011 · 0 comments
Open

creating a recurring entry #2

flegoff opened this issue Apr 13, 2011 · 0 comments

Comments

@flegoff
Copy link

flegoff commented Apr 13, 2011

It's impossible to create a recurring entry with the following vars :

count   
u'6'
start_datetime  
u'04/04/2011'
begin_date  
u'04/05/2011'
description 
u''
end_date    
u'04/14/2011'
title   
u'fgdfg'
start_time  
u'12:00:00'
interval    
u'1'
recurrence  
u'on'
frequency   
u'3'
end_time    
u'12:00:00'
csrfmiddlewaretoken 
u'6d36bf821cf285ffddd23c91b7f64072'
end_datetime    
u'07/25/2011'

I'm getting this TB :

TypeError at /event/create/
__init__() got an unexpected keyword argument 'end_datetime'
Request Method: POST
Request URL:    http://localhost:8000/event/create/
Django Version: 1.3



Environment:


Request Method: POST
Request URL: http://localhost:8000/event/create/

Django Version: 1.3
Python Version: 2.6.6
Installed Applications:
['django_extensions',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.admin',
 'django.contrib.comments',
 'django.contrib.sitemaps',
 'django.contrib.syndication',
 'dajaxice',
 'agenda',
 'myagenda']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/Users/florian/prod/venv/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Users/florian/dev/django-fullcalendar-examples/django_agenda_fullcalendar/../django_agenda_fullcalendar/myagenda/views.py" in create_event
  55.                     recurrence_form.save()
File "/Users/florian/prod/venv/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/forms/models.py" in save
  363.                              fail_message, commit, construct=False)
File "/Users/florian/prod/venv/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/forms/models.py" in save_instance
  85.         instance.save()
File "/Users/florian/prod/venv/src/django-agenda/agenda/models.py" in save
  185.         models.Model.save(self)
File "/Users/florian/prod/venv/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/db/models/base.py" in save
  460.         self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/Users/florian/prod/venv/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/db/models/base.py" in save_base
  570.                 created=(not record_exists), raw=raw, using=using)
File "/Users/florian/prod/venv/lib/python2.6/site-packages/Django-1.3-py2.6.egg/django/dispatch/dispatcher.py" in send
  172.             response = receiver(signal=self, sender=sender, **named)
File "/Users/florian/dev/django-fullcalendar-examples/django_agenda_fullcalendar/myagenda/models.py" in create_myrecurrence
  10.     create_recurrence(sender, instance, created, event_class=MyEvent)
File "/Users/florian/prod/venv/src/django-agenda/agenda/models.py" in create_recurrence
  196.         occurs = rrule.rrule(instance.frequency, **options)

Exception Type: TypeError at /event/create/
Exception Value: __init__() got an unexpected keyword argument 'end_datetime'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant