1. Matthew Schinckel
  2. django-uuidfield

Commits

Matthew Schinckel  committed 61e9ea1 Merge

Merge

  • Participants
  • Parent commits 8722e6c, 5c8e164
  • Branches default

Comments (0)

Files changed (2)

File uuidfield/__init__.py

View file
 from fields import UUIDField
+import surlex_macro

File uuidfield/surlex_macro.py

View file
+# 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}')