import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL')
db = SQLAlchemy(app)

class FoodMenu(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return self.result

class FoodServices(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return self.result

import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL')
db = SQLAlchemy(app)

class FoodMenu(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return "<FoodMenu('%s')>" % (self.result)

class FoodServices(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return "<FoodServices('%s')>" % (self.result)

Include class name in model representations
Include class name in model representations

  import os
  from flask import Flask
  from flask.ext.sqlalchemy import SQLAlchemy
  
  app = Flask(__name__)
  app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL')
  db = SQLAlchemy(app)
  
  class FoodMenu(db.Model):
  	id = db.Column(db.Integer, primary_key=True)
  	result = db.Column(db.Text)
  
  	def __init__(self, result):
  		self.result = result
  
  	def __repr__(self):
- 		return self.result
+ 		return "<FoodMenu('%s')>" % (self.result)
  
  class FoodServices(db.Model):
  	id = db.Column(db.Integer, primary_key=True)
  	result = db.Column(db.Text)
  
  	def __init__(self, result):
  		self.result = result
  
  	def __repr__(self):
- 		return self.result
+ 		return "<FoodServices('%s')>" % (self.result)
  
Include class name in model representations
## Code Before:
import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL')
db = SQLAlchemy(app)

class FoodMenu(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return self.result

class FoodServices(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return self.result

## Instruction:
Include class name in model representations
## Code After:
import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL')
db = SQLAlchemy(app)

class FoodMenu(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return "<FoodMenu('%s')>" % (self.result)

class FoodServices(db.Model):
	id = db.Column(db.Integer, primary_key=True)
	result = db.Column(db.Text)

	def __init__(self, result):
		self.result = result

	def __repr__(self):
		return "<FoodServices('%s')>" % (self.result)
