from django.db import models
from django.contrib.auth.models import User
class City(models.Model):
    name = models.CharField(max_length=25)
    user = models.ManyToManyField(User)
    

    def __str__(self): #show the actual city name on the dashboard
        return self.name
    
    class Meta: #show the plural of city as cities instead of citys
        verbose_name_plural = 'cities'