Anonymous avatar Anonymous committed a6c7912

It is about time we add a OneToOneField snippet. Trigger is 'oto'

Comments (0)

Files changed (2)

Python Django.tmbundle/Snippets/OneToOneField.tmSnippet

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>content</key>
+	<string>${1:FIELDNAME} = models.OneToOneField(${2:RELATED_MODEL}${3:, related_name="${4:RELATED_NAME}"})</string>
+	<key>name</key>
+	<string>OneToOneField</string>
+	<key>scope</key>
+	<string>source.python.django</string>
+	<key>tabTrigger</key>
+	<string>oto</string>
+	<key>uuid</key>
+	<string>78D53E2D-B51C-4404-A390-DAFFAEA84EDE</string>
+</dict>
+</plist>

Python Django.tmbundle/info.plist

 		<string>E77A3EB3-7EF2-4459-8DAB-53625BCA68AF</string>
 		<string>F497C0D3-812E-4339-8260-8D906337023B</string>
 		<string>449AB31C-BAB7-4D30-AF04-6A070CBE4EF4</string>
+		<string>78D53E2D-B51C-4404-A390-DAFFAEA84EDE</string>
 		<string>5D4F70FB-4A51-41D4-B729-920F827E70D2</string>
 		<string>27531D3B-899B-4872-A16D-7275E4E91B02</string>
 		<string>21013818-A691-4E96-A889-70A0F2F28557</string>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.