Commits

Matthew Schinckel committed 5c8e164

Added surlex macro

  • Participants
  • Parent commits cd01a86

Comments (0)

Files changed (2)

File uuidfield/__init__.py

 from fields import UUIDField
+import surlex_macro

File uuidfield/surlex_macro.py

+# Register a surlex uuid macro.
+
+try:
+    import surlex
+except ImportError:
+    pass
+else:
+    surlex.register_macro('u', r'[a-fA-F0-9]{8}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{12}')