Thank you for your suggestion:
Here is my model, as you will see, I commented out my def and added yours. 
Unfortunately there was no change.


# Customer Information Database
class dbCustomer(models.Model):
name =models.CharField(max_length=60)
contactfn =models.CharField(max_length=25)
contactln =models.CharField(max_length=25)
email =models.EmailField(blank=False,max_length=254)
phone =models.CharField(max_length=25)
shpaddr1 =models.CharField(max_length=60)
shpaddr2 =models.CharField(max_length=60)
shpaddr3 =models.CharField(max_length=60)
shpcity =models.CharField(max_length=30)
shpstate =models.CharField(max_length=2)
shpzip =models.CharField(max_length=11)
biladdr1 =models.CharField(max_length=60)
biladdr2 =models.CharField(max_length=60)
biladdr3 =models.CharField(max_length=60)
bilcity =models.CharField(max_length=30)
bilstate =models.CharField(max_length=2)
bilzip =models.CharField(max_length=11)

# def __str__(self):
# return '%s' % (self.name)
def __str__(self):
return "Customer" + self.id 

On Tuesday, December 11, 2018 at 4:50:46 PM UTC-5, madjardi wrote:
>
> def __str__(self):
>>
>        return "Custome" + self.id  
>

-- 
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/f57b82bd-c398-4f5b-be70-ef4fc81a1668%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to