'Enable or disable thumbnail generation config.
Config models pick the most recent by date created, descending. I delete
entries here because that can sometimes screw up on MySQL, which only
has second-level granularity in this timestamp.
This uses non-default values for the dimensions.'

def set_config(self, enabled):

    CourseOverviewImageConfig.objects.all().delete()
    CourseOverviewImageConfig.objects.create(enabled=enabled, small_width=200, small_height=100, large_width=400, large_height=200)
