Add BrowserFingerprint model
This commit is contained in:
parent
a3e6308837
commit
225742798b
1 changed files with 22 additions and 1 deletions
|
@ -1,3 +1,24 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class BrowserFingerprint(models.Model):
|
||||
''' A browser fingerprint, containing things like a user agent '''
|
||||
|
||||
description = models.CharField(max_length=256)
|
||||
useragent = models.CharField(max_length=256)
|
||||
appname = models.CharField(max_length=256)
|
||||
appversion = models.CharField(max_length=256)
|
||||
platform = models.CharField(max_length=256)
|
||||
vendor = models.CharField(max_length=256)
|
||||
vendorsub = models.CharField(max_length=256)
|
||||
buildID = models.CharField(max_length=256)
|
||||
oscpu = models.CharField(max_length=256)
|
||||
accept_encoding = models.CharField(max_length=256)
|
||||
accept_default = models.CharField(max_length=256)
|
||||
accept_lang = models.CharField(max_length=256)
|
||||
pixeldepth = models.IntegerField()
|
||||
colordepth = models.IntegerField()
|
||||
screens = models.CharField(max_length=256)
|
||||
|
||||
def __str__(self):
|
||||
return self.description
|
||||
|
|
Loading…
Reference in a new issue