Greetings Djangoers,
The company I'm working for are currently looking for a Django ninja
to come and, well, write some code.
The position would be freelance, based in Victoria, London, UK. We
have some great clients, and an infinite supply of biscuits.
If you think you might be interested then
Here's some code that I wrote a few days ago:
class MyModel(models.Model):
#various fields and stuff here
def save(self, *args, **kwargs):
if not self.slug:
self.slug = self.make_slug()
super(Project, self).save(*args, **kwargs)
def make_slug(self):
It should just be blank=True (null=False).
Here's a better paste of the code without Google wapping all the
lines.
http://pastebin.com/N5RvfDrD
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@go
3 matches
Mail list logo