Commits

Matthew Schinckel committed 61e9ea1 Merge

Merge

Comments (0)

Files changed (2)

uuidfield/__init__.py

 from fields import UUIDField
+import surlex_macro

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}')