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
373 B
11 lines
373 B
12 years ago
|
from django.db.models.signals import post_syncdb
|
||
|
from django.core.management import commands, call_command
|
||
|
import django.contrib.auth
|
||
|
|
||
|
def createPluginGroup(sender, app, created_models, **kwargs):
|
||
|
if django.contrib.auth.models.Group in created_models:
|
||
|
call_command("loaddata", "group_plugin")
|
||
|
|
||
|
post_syncdb.connect(createPluginGroup, sender=django.contrib.auth.models)
|
||
|
|