Example #1
0
    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")
Example #2
0
    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')
Example #3
0
    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')