It is indeed a string.  The string happens to represent an integer, a key 
of an item in another table.  It is not an external reference because there 
are dated versions of the table and the referent may or may not exist in 
any one of them.  It existed in the table in use at the time the record was 
created and needs to be preserved.

On Sunday, April 29, 2018 at 9:03:07 PM UTC-7, George Lubaretsi wrote:
>
>  File "/raid3/build/comprosloco/oil/models.py", line 172, in __str__
>     self.accepted
>
> What is inside this __str__ method? `self.accepted` field name sounds like 
> it could be a date. Return type of __str__ must be a string.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/52b2bdea-b4ef-4434-9325-b98e58ae675e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to