Changes between Initial Version and Version 1 of Ticket #23048, comment 7
- Timestamp:
- Jun 3, 2020, 3:28:35 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23048, comment 7
initial v1 3 3 I've tried to add a default as suggested above: 4 4 5 {{{ 5 6 - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='translatable_messages.Language'), 6 7 + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='translatable_messages.Language', default=1), 7 8 + preserve_default=False 9 }}} 10 8 11 9 12 but instead of postgres warning about the field having null values when it's not supposed to i get this: