I have this in models.py:

domain = models.URLField(...)

Let's say one row in the table has this for domain:

'http://www.google.com'

 When the domain field is looked up, I would like to return:

www.google.com

I know how to parse the URL but am drawing a blank on how to
accomplish this at the model level.
--~--~---------~--~----~------------~-------~--~----~
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