def setUp(self): u = User(username="******", is_active=True, is_staff=True, is_superuser=True) u.set_password("test") u.save() Entry.register_regions(("main", "Main region"), ("another", "Another region")) Entry.prefilled_categories = prefilled_attribute("categories") Entry.prefilled_rawcontent_set = prefilled_attribute("rawcontent_set")
def setUp(self): u = User(username='******', is_active=True, is_staff=True, is_superuser=True) u.set_password('test') u.save() Entry.register_regions(('main', 'Main region'), ('another', 'Another region')) Entry.prefilled_categories = prefilled_attribute('categories') Entry.prefilled_rawcontent_set = prefilled_attribute('rawcontent_set')