On Mon, Aug 24, 2009 at 1:01 PM, Merrick<merr...@gmail.com> wrote:
> I know how to parse the URL but am drawing a blank on how to
> accomplish this at the model level.

add a function to the model, that returns the parsed field.

class yourmodel (models.Model):
  ....
  domain = models.URLField(...)
  ....
  def strippeddoamin (self):
     return stripdomain(self.domain)

-- 
Javier

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to