cleaned up code around json, *locn -> transitioned to top, right, bottom, left to finally fix ORM replacing [ with { <- FIXES BUG-108
This commit is contained in:
@@ -14,7 +14,6 @@ from path import Path, PathType
|
||||
from job import JobExtra, NewJob
|
||||
|
||||
import os
|
||||
import json
|
||||
import time
|
||||
from PIL import Image
|
||||
import base64
|
||||
@@ -68,14 +67,6 @@ class Person(PA,db.Model):
|
||||
firstname = db.Column(db.String(48), unique=False, nullable=False)
|
||||
refimg = db.relationship('Refimg', secondary=PersonRefimgLink.__table__, order_by=Refimg.id)
|
||||
|
||||
################################################################################
|
||||
# Helper class that inherits a .dump() method to turn class Person into json / useful in jinja2
|
||||
################################################################################
|
||||
class PersonSchema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Person
|
||||
ordered = True
|
||||
|
||||
################################################################################
|
||||
# Helper class that defines a form for person, used to make html <form>, with field validation (via wtforms)
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user