コード例 #1
0
ファイル: model.py プロジェクト: uzzal2k5/python3x
class CommentatorProfile(models.Model):
    socialid = models.CharField(max_length=45)
    name = models.CharField(max_length=45, default='')
    totoal_comment = models.IntegerField()
    pur_pattern = models.DecimalField(max_digits=5, decimal_places=2)
    spam = models.IntegerField()
    score = models.DecimalField(max_digits=5, decimal_places=2)

    def __str__(self):
        return self.socialid
コード例 #2
0
ファイル: model.py プロジェクト: uzzal2k5/python3x
class TeleProfile(models.Model):
    socialid = models.CharField(max_length=45)
    telcoid = models.CharField(max_length=45)
    name = models.CharField(max_length=45, default='')
    totoal_comment = models.IntegerField()
    pur_pattern = models.IntegerField()
    spam = models.IntegerField()
    score = models.DecimalField(max_digits=5, decimal_places=2)
    cumSum = models.DecimalField(max_digits=5, decimal_places=2)
    sat_level = models.CharField(max_length=45)
    last_interection = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.socialid