mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Remove unused model strinigfication
This commit is contained in:
parent
705472c9dc
commit
da39c6b9dc
1 changed files with 0 additions and 9 deletions
|
|
@ -7,15 +7,6 @@ class BaseModel(Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
database = db
|
database = db
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
r = {}
|
|
||||||
for k in self._data.keys():
|
|
||||||
try:
|
|
||||||
r[k] = str(getattr(self, k))
|
|
||||||
except:
|
|
||||||
r[k] = json.dumps(getattr(self, k))
|
|
||||||
return str(r)
|
|
||||||
|
|
||||||
class Article(BaseModel):
|
class Article(BaseModel):
|
||||||
"""
|
"""
|
||||||
An article is a single incident as crawled from the reach-out webpage
|
An article is a single incident as crawled from the reach-out webpage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue