aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-09 09:32:17 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-10-09 09:32:17 +0300
commit3ecfed0d68883ecc66a88e7a2b968c67095e5543 (patch)
tree6492a5f19e5970d89edc23657d20df6d9fb78c61
parentbfd17aa15d422a3188f24ce37cdf78af319e5384 (diff)
downloadServo-3ecfed0d68883ecc66a88e7a2b968c67095e5543.tar.gz
Servo-3ecfed0d68883ecc66a88e7a2b968c67095e5543.tar.bz2
Servo-3ecfed0d68883ecc66a88e7a2b968c67095e5543.zip
Restore imports
-rwxr-xr-xinstall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/install.py b/install.py
index 2a52159..e2c5306 100755
--- a/install.py
+++ b/install.py
@@ -55,6 +55,8 @@ loc['address'] = raw_input('4/6 Address [Somestreet 1]: ') or 'Somestreet 1'
loc['zip_code'] = raw_input('5/6 Postal code [1234]: ') or '1234'
loc['city'] = raw_input('6/6 City [Stockholm]: ') or 'Stockholm'
+from servo.models import Location, User
+
first_loc = Location(**loc)
first_loc.save()
su = User.objects.filter(pk=1).update(location=first_loc)