Esempio n. 1
0
 def populate_db(self, news_count=0, products_count=0, categories_count=0):
     from core.data.icons import import_icons
     import_icons(Icon)
     url = reverse('populate_db', kwargs=dict(
         news_count=news_count, products_count=products_count, categories_count=categories_count))
     self.show_page(url, searched_element="ok")
Esempio n. 2
0
def _add_icons(apps, schema_editor):
    Icon = apps.get_model("core", "Icon")
    import_icons(Icon)