在 Django 中扩展 South Introspection

发布于 2024-09-13 21:31:14 字数 275 浏览 2 评论 0原文

我有一个自定义应用程序,我想开始使用 South。它使用 FK 关联来自另一个应用程序的博客条目(专有的,不是我编写的)。问题是,当我尝试运行初始架构迁移时,出现错误,指出博客条目应用程序的某些字段无法冻结。无法冻结的字段是使用从核心字段扩展的自定义字段的字段。

./manage.py schemamigration free --initial

我阅读了 South 关于扩展内省的文档,但我不知道在哪里/如何定义内省规则。

预先感谢您的任何建议。

I have a custom app which I wanted to start using South with. It uses a FK for associating a blog entry from another app (proprietary, not written by me). Problem is when I try to run the initial schemamigration I get an error that some of the blog entry app's fields cannot be frozen. The fields that can't be frozen are fields that uses custom fields extended off of the core fields.

./manage.py schemamigration free --initial

I read South's docs on extending introspection but I don't know where/how to define the introspection rules.

Thanks in advance for any suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女的英雄梦 2024-09-20 21:31:14

您是否尝试过South Field Triple方法?

Have you tried the South Field Triple approach instead?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文