<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@ from models import Bmark
 from google.appengine.ext import db
 from django.utils.translation import ugettext_lazy as _
 from google.appengine.api import users
+from django.template.defaultfilters import slugify
 import re
 
 class AddBmarkForm(forms.Form):
@@ -11,9 +12,7 @@ class AddBmarkForm(forms.Form):
 
     def clean_description(self):
         desc = self.cleaned_data['description']
-
-        name = re.sub('[^\w|^\-| ]', '', desc)
-        name = name.replace(' ', '_')
+        name = slugify(desc).decode()
         q = db.Query(Bmark)
         q.filter('name =', name)
         q.filter('user =', users.get_current_user())</diff>
      <filename>forms.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>930e80dd6595ce50ca16c81bc0371cf32115121a</id>
    </parent>
  </parents>
  <author>
    <name>mihasya</name>
    <email>m@mihasya.com</email>
  </author>
  <url>http://github.com/mihasya/yourmuni/commit/028cd96a90e8e73f835606b7d97a7e33927c1a7e</url>
  <id>028cd96a90e8e73f835606b7d97a7e33927c1a7e</id>
  <committed-date>2009-01-17T12:43:36-08:00</committed-date>
  <authored-date>2009-01-17T12:43:36-08:00</authored-date>
  <message>replaced manual strip code with django's slugify filter</message>
  <tree>19b6e23e134e27e58e67b72c139c99ac983de472</tree>
  <committer>
    <name>mihasya</name>
    <email>m@mihasya.com</email>
  </committer>
</commit>
