Changes between Initial Version and Version 3 of Ticket #20154


Ignore:
Timestamp:
Oct 1, 2015, 4:28:52 PM (9 years ago)
Author:
Tim Graham
Comment:

This is fixed in Django 1.9. The test in the shell session will now given an error message, "TypeError: Tried to update field tix20154.Address.country with a model instance, <Country: Sweden>. Use a value compatible with CharField." (and similar for the test provided in the link of comment 2).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20154

    • Property Cc schmilblick Matt added
    • Property Triage Stage UnreviewedAccepted
    • Property Version 1.4master
    • Property Resolutionfixed
    • Property Status newclosed
  • Ticket #20154 – Description

    initial v3  
    66
    77class Country(models.Model):
    8   name = models.CharField(max_length=100)
    9   def __unicode__(self):
    10     return name
     8    name = models.CharField(max_length=100)
     9    def __unicode__(self):
     10        return self.name
    1111
    1212class Address(models.Model):
    13   country = models.CharField(max_length=100)
     13    country = models.CharField(max_length=100)
    1414}}}
    1515{{{
Back to Top