from django.db import models


class Client(models.Model):
    client_name = models.CharField(max_length=60)


class Service(models.Model):
    name = models.CharField(max_length=60)


class TeamMember(models.Model):
    name = models.CharField(max_length=60)

from django.db import models


class Client(models.Model):
    client_name = models.CharField(max_length=60)

    def __unicode__(self):
        return self.client_name


class Service(models.Model):
    name = models.CharField(max_length=60)

    def __unicode__(self):
        return self.name


class TeamMember(models.Model):
    name = models.CharField(max_length=60)

    def __unicode__(self):
        return self.name

Fix object name in Django Admin
Fix object name in Django Admin

http://stackoverflow.com/questions/9336463/django-xxxxxx-object-display-customization-in-admin-action-sidebar

  from django.db import models
  
  
  class Client(models.Model):
      client_name = models.CharField(max_length=60)
  
+     def __unicode__(self):
+         return self.client_name
+ 
  
  class Service(models.Model):
      name = models.CharField(max_length=60)
+ 
+     def __unicode__(self):
+         return self.name
  
  
  class TeamMember(models.Model):
      name = models.CharField(max_length=60)
  
+     def __unicode__(self):
+         return self.name
+ 
Fix object name in Django Admin
## Code Before:
from django.db import models


class Client(models.Model):
    client_name = models.CharField(max_length=60)


class Service(models.Model):
    name = models.CharField(max_length=60)


class TeamMember(models.Model):
    name = models.CharField(max_length=60)

## Instruction:
Fix object name in Django Admin
## Code After:
from django.db import models


class Client(models.Model):
    client_name = models.CharField(max_length=60)

    def __unicode__(self):
        return self.client_name


class Service(models.Model):
    name = models.CharField(max_length=60)

    def __unicode__(self):
        return self.name


class TeamMember(models.Model):
    name = models.CharField(max_length=60)

    def __unicode__(self):
        return self.name
