islco / django-rq-scheduler

A database backed job scheduler for Django RQ and RQ Scheduler
MIT License
42 stars 46 forks source link

Fail to add a new repeatable or scheduled job. #11

Closed cmm08 closed 8 years ago

cmm08 commented 8 years ago

class QueueMixin(object):

def get_form(self, request, obj=None, **kwargs):
    queue_field = obj._meta.get_field('queue')
    queue_field.choices = QUEUES
    return super(QueueMixin, self).get_form(request, obj, **kwargs)

This will throw AttributeError when obj is None.

cmm08 commented 8 years ago

Never mind. chassing has fixed this in his pull request.