If you want to limit a page to have only one type of child and limit its child to have only one type of parent you have to tell both models. @laceynwilliams | @revsys
sprint ideas 1. Expand on "Page Models" in Usage Guide? 2. Add example to "Parent page / subpage type rules"? 3. Method to add a new page instance? Or more docs? @laceynwilliams | @revsys
assumptions ✓ No custom Redirect class ✓ One site ✓ Redirects are permanent ✓ URL definitely 404s ✓ Redirec9ng to a Page instance @laceynwilliams | @revsys
sprint ideas 1. Expand on "Page Models" in Usage Guide? 2. Add example to "Parent page / subpage type rules"? 3. Method to add a new page instance? Or more docs? 4. Method to add redirect programmatically? @laceynwilliams | @revsys
# team/models.py from django.contrib.auth import get_user_model from wagtail.core.models import Page User = get_user_model() class TeamMemberPage(Page): ... user = models.ForeignKey(User) @laceynwilliams | @revsys
# team/models.py from django.contrib.auth import get_user_model from wagtail.core.models import Page User = get_user_model() class TeamMemberPage(Page): ... user = models.ForeignKey(User) @laceynwilliams | @revsys
# team/models.py from django.contrib.auth import get_user_model from wagtail.core.models import Page User = get_user_model() class TeamMemberPage(Page): ... user = models.ForeignKey(User) @laceynwilliams | @revsys
sprint ideas 1. Expand on "Page Models" in Usage Guide? 2. Add example to "Parent page / subpage type rules"? 3. Method to add a new page instance? Or more docs? 4. Method to add redirect programmatically? 5. Expand on User model docs? @laceynwilliams | @revsys