예제 #1
0
class Blog(models.Model):
    name = models.CharField(max_length=64, )
    address = models.CharField()
    houseid = models.Interfield()

    def __str__(self):
        return self.name
예제 #2
0
class Post(models.Model):
    name = models.CharField()
    address = models.CharField()
    houseid = models.Interfield()

    def __str__(self):
        return self.name