from django.db import models

class Activity(models.Model):
    name = models.CharField(max_length=200)
    description = models.TextField()

from django.db import models

class Activity(models.Model):
    name = models.CharField(max_length=200)
    description = models.TextField()

    def __str__(self):
        return self.name

Add string representation for Activity model
Add string representation for Activity model

  from django.db import models
  
  class Activity(models.Model):
      name = models.CharField(max_length=200)
      description = models.TextField()
  
+     def __str__(self):
+         return self.name
+ 
Add string representation for Activity model
## Code Before:
from django.db import models

class Activity(models.Model):
    name = models.CharField(max_length=200)
    description = models.TextField()

## Instruction:
Add string representation for Activity model
## Code After:
from django.db import models

class Activity(models.Model):
    name = models.CharField(max_length=200)
    description = models.TextField()

    def __str__(self):
        return self.name
