Open-event-server: Slogan field no longer in Event model

Created on 4 Jun 2016  路  3Comments  路  Source: fossasia/open-event-server

The following error comes when trying to POST an event. Travis CI was not able to catch it because the event model was not tested for creating events. (due to issue with SQLite date time)

    new_event = EventModel(**self.api.payload)
TypeError: __init__() got an unexpected keyword argument 'slogan'
127.0.0.1 - - [04/Jun/2016 16:20:46] "POST /api/v2/events HTTP/1.1" 500 -
bug rest-api

Most helpful comment

@SaptakS @aviaryan earlier we are not storing any data from the form to the slogan field of the event. So why do we require the slogan field. Also we are using two urls in the form - one for background , for which I created a column and other is event_url which is getting stored in the event_url field

All 3 comments

Also url is event_url

@rafalkowalski @juslee I had the same issue while testing the APIs for iCal export. Should we have the slogan field? And what about the event_url? We need to make the changes accordingly.

@SaptakS @aviaryan earlier we are not storing any data from the form to the slogan field of the event. So why do we require the slogan field. Also we are using two urls in the form - one for background , for which I created a column and other is event_url which is getting stored in the event_url field

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dr0pdb picture dr0pdb  路  4Comments

aditya1702 picture aditya1702  路  4Comments

Masquerade0097 picture Masquerade0097  路  3Comments

poush picture poush  路  3Comments

niranjan94 picture niranjan94  路  5Comments