diff --git a/profiles/models.py b/profiles/models.py index adb6040..dc8cab2 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -137,6 +137,15 @@ class BrowserFingerprint(models.Model): def __str__(self): return self.description + def serialize_headers(self): + return { + "Description" : str(self.description), + "User-Agent" : str(self.useragent), + "Accept-Encoding" : str(self.accept_encoding), + "Accept" : str(self.accept_default), + "Accept-Language" : str(self.accept_lang), + } + class SearchEngine(models.Model): ''' A search engine, and all the data needed to use it '''