Changes between Initial Version and Version 1 of Ticket #21411, comment 4
- Timestamp:
- Nov 9, 2013, 8:35:06 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21411, comment 4
initial v1 2 2 3 3 I really think the Django documentation should warn against using classes directly as `ForeignKey` targets, and recommend using the `app.model` string representation, especially when linking to the user model. This behaviour prevents all circular and "too early" imports. 4 Even better, Django itself should, at some time, deprecate using classes as `ForeignKey` targets.4 Even better, Django itself should, at some time, deprecate using plain model classes as `ForeignKey` targets.