Changes between Initial Version and Version 1 of Ticket #23048, comment 7


Ignore:
Timestamp:
Jun 3, 2020, 3:28:35 AM (4 years ago)
Author:
rm_

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23048, comment 7

    initial v1  
    33I've tried to add a default as suggested above:
    44
     5{{{
    56-            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='translatable_messages.Language'),
    67+            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='translatable_messages.Language', default=1),
    78+            preserve_default=False
     9}}}
     10
    811
    912but instead of postgres warning about the field having null values when it's not supposed to i get this:
Back to Top