living area
This commit is contained in:
@@ -72,6 +72,9 @@ def create_listing():
|
||||
latitude = request.form.get('latitude')
|
||||
longitude = request.form.get('longitude')
|
||||
guests = request.form['guests']
|
||||
rooms = request.form['rooms']
|
||||
beds = request.form['beds']
|
||||
bathrooms = request.form['bathrooms']
|
||||
listing = Listing(title=title,
|
||||
description=description,
|
||||
price=price,
|
||||
@@ -79,7 +82,8 @@ def create_listing():
|
||||
property_type=property_type,
|
||||
host_id=current_user.id,
|
||||
latitude=latitude, longitude=longitude,
|
||||
guests=guests)
|
||||
guests=guests,
|
||||
rooms=rooms, beds=beds, bathrooms=bathrooms)
|
||||
db.session.add(listing)
|
||||
db.session.flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user