Changes between Initial Version and Version 1 of Ticket #28332, comment 2


Ignore:
Timestamp:
Sep 2, 2017, 12:56:07 PM (7 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28332, comment 2

    initial v1  
    11The `PizzeriaBar` model is inheriting the `restaurant_ptr` field from both `Pizzeria` and `Bar`, so you need to specify the parent link field on at least one of them, per https://docs.djangoproject.com/en/dev/topics/db/models/#specifying-the-parent-link-field. This gets a little complicated if you are creating this child model and overriding these field names at a later date than the parent since you are changing the field name, it is going to require using the `db_column` arg on the field or more complex migrations.
    22
    3 This seems to me to have a lot of caveats to be provided as an example in the docs; however, here is a PR that updates the existing example to be working.
     3This seems to me to have a lot of caveats to be provided as an example in the docs; however, here is a [https://github.com/django/django/pull/8920 PR] that updates the existing example to be working.
Back to Top