e7db9c673b09

Moar.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 20 May 2011 09:20:37 -0400
parents 8aa39868d09f
children a3ee59dcfe6e
branches/tags (none)
files .hgrc vim/snippets/django.snippets

Changes

--- a/.hgrc	Tue May 10 12:27:48 2011 -0400
+++ b/.hgrc	Fri May 20 09:20:37 2011 -0400
@@ -200,3 +200,6 @@
 
 # Show in MacVim
 vshow = !$HG show $@ | mvim -c ':AnsiEsc' -c 'setlocal buftype=nofile' -
+
+# Update subrepos
+subup = !grep = "`$HG root`/.hgsub" | cut -d' ' -f1 | xargs -n 1 -I SUB hg pull --update --cwd "`$HG root`/SUB"
--- a/vim/snippets/django.snippets	Tue May 10 12:27:48 2011 -0400
+++ b/vim/snippets/django.snippets	Fri May 20 09:20:37 2011 -0400
@@ -63,6 +63,10 @@
 	${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel})
 snippet bl
 	blank=True
+snippet dc
+	db_column='${1:colname}'
+snippet dt
+	db_table='${1:tablename}'
 snippet o2o
 	${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})