code4lib / shortimer

a webapp for code4lib jobs
http://jobs.code4lib.org
40 stars 15 forks source link

Unable to curate jobs needing employer #21

Closed lawlesst closed 11 years ago

lawlesst commented 11 years ago

When I go to curate and then look at jobs needing attention I'm getting a 2009 posting for a position at CUNY. I am unable to skip to the next posting or delete this position. I'm just stuck at the curate view for this position. Am I missing something or is something odd with the data that's creating this?

http://jobs.code4lib.org/curate/employers/

edsu commented 11 years ago

Weird, I just typed "City University of New York" selecte the first hit, hit enter, and then save...and it worked. Did you type something else? And can you try another one, maybe there is some browser dependency problem?

lawlesst commented 11 years ago

Adding an employer seems to work fine for me now too. I just added a few.

Where I think I got confused is that a posting can't be deleted if it's already published. Line 107 in views.py:

if form.get("action") == "delete" and not j.published:
    j.deleted = datetime.datetime.now()
    j.save() 

In this case, the posting was old and a duplicate (492 and 493) so I tried to delete it first and wasn't getting anywhere.

Thanks.