Changes between Initial Version and Version 1 of Ticket #32137


Ignore:
Timestamp:
Oct 23, 2020, 5:43:42 PM (4 years ago)
Author:
Vlada Macek
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32137 – Description

    initial v1  
    11Sometimes the developer wishes the `id` to be a part of the `Model.__str__`.
    2 Such model could of course be part of the **inline** model admin.
    3 When the inline object is deleted, the `save_related()` of the formset deletes it just before the first call of `construct_change_message` in https://github.com/django/django/blob/master/django/contrib/admin/options.py#L1586 chimes in.
     2Such model could of course be as **inline** in other model admin.
     3When such inline object is deleted, the `save_related()` of the formset deletes it just before the first call of `construct_change_message()` in https://github.com/django/django/blob/master/django/contrib/admin/options.py#L1586 chimes in.
    44
    55At that moment, the `id` is None and "None" makes it to the "Deleted ..." `LogEntry.change_message` for the formset.
Back to Top