Changes between Version 1 and Version 2 of Ticket #22424, comment 2
- Timestamp:
- Apr 13, 2014, 7:35:46 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22424, comment 2
v1 v2 1 1 Replying to [comment:1 loic84]: 2 >I can reproduce that adding a TextField() triggers the questioner which is probably confusing, I wonder if we can't just use '' as default automatically when default=NOT_PROVIDED and empty_strings_allowed=True. Accepting the ticket on this basis. 3 Yes I think correct is to use "None" as default in this instance. 2 4 > Regarding the error with `'blabla'`, did you actually type the quotes? That prompt interprets Python, so if you just type `blabla` it'll throw an error because it can't find a variable named "blabla". 3 5 Yes, I type the quotes and migration successfully making. I confused commands "migrate" and "magemigrations" in ticked description. I get error when I trying to apply created migration because it contains default value for field that can't have default value in MySQL database :)