1 | if getline(1) =~ 'from django.core import meta'
|
---|
2 | Iabbr addmodel class <>(meta.Model):<CR><><CR><CR>def __repr__(self):<CR>return "%s" % (<>)<CR><CR>class META:<CR>admin = meta.Admin()
|
---|
3 | Iabbr mcf meta.CharField(maxlength=<>)<CR><>
|
---|
4 | Iabbr mif meta.ImageField(upload_to='<>')<CR><>
|
---|
5 | Iabbr mff meta.FileField(upload_to='<>')<CR><>
|
---|
6 | Iabbr mint meta.IntegerField()<CR><>
|
---|
7 | Iabbr mtf meta.TextField()<CR><>
|
---|
8 | Iabbr m2m meta.ManyToManyField(<>, verbose_name='<>')<CR><>
|
---|
9 | Iabbr mfk meta.ForeignKey(<>, verbose_name='<>')<CR><>
|
---|
10 | Iabbr o2o meta.OneToOneField(<>, verbose_name='<>')<CR><>
|
---|
11 | endif
|
---|