You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
353 B
11 lines
353 B
12 years ago
|
from django.db.models.signals import post_syncdb
|
||
|
from django.core.management import commands, call_command
|
||
|
import buyable.models
|
||
|
|
||
|
def createBuyableTypes(sender, app, created_models, **kwargs):
|
||
|
if buyable.models.BuyableType in created_models:
|
||
|
call_command("loaddata", "buyable_types")
|
||
|
|
||
|
post_syncdb.connect(createBuyableTypes, sender=buyable.models)
|
||
|
|