Closed cmm08 closed 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.
Never mind. chassing has fixed this in his pull request.
class QueueMixin(object):
This will throw AttributeError when obj is None.