Commit 4029a051 authored by Francesca Sargent 's avatar Francesca Sargent
Browse files

Removing init from models

parent 99b081bf
......@@ -334,13 +334,6 @@ class Cuisine(db.Model):
recipes = db.relationship('Recipe', secondary=recipecuisines, backref=db.backref('cuisines', lazy='dynamic'))
comments = db.relationship('Comment', backref='cuisine', lazy='dynamic')
def __init__(self, name, description, author, methods):
""""""
self.name = name
self.description = description
self.author = author
self.methods = methods
class Method(db.Model):
__tablename__='methods'
......@@ -355,13 +348,6 @@ class Method(db.Model):
recipes = db.relationship('Recipe', secondary=recipemethods, backref=db.backref('methods', lazy='dynamic'))
cuisines = db.relationship('Cuisine', secondary=cuisinemethods, backref=db.backref('methods', lazy='dynamic'))
def __init__(self, name, description, method_text, author, cuisines):
""""""
self.name = name
self.description = description
self.method_text = method_text
self.author = author
self.cuisines = cuisines
class Comment(db.Model):
__tablename__ = 'comments'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment