We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
We need to document how to create Widgy Owners in a migration.
Here's what I just did:
from django.contrib.contenttypes.models import ContentType from ..models import MyRootBucket class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." ct = ContentType.objects.get_for_model(MyRootBucket) orm['widgets.MyOwner'].objects.create(content=ct) def backwards(self, orm): "Write your backwards methods here." orm['widgets.MyOwner'].objects.all().delete()
But I don't know if it's correct.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We need to document how to create Widgy Owners in a migration.
Here's what I just did:
But I don't know if it's correct.
The text was updated successfully, but these errors were encountered: