Hello,

I want to carry value as default from one model to another.

For example:

class Text(models.Model):
    text = models.TextField(blank = True)
    name = models.SlugField(db_index=True, unique=True)

class News(models.Model):
    content = models.ForeignKey(Text, blank = True, null = True,
defaut=********)
    text = models.SlugField(db_index=True, unique=True)

I want to set content's default value as Text's text value. What can I
put here instead of ******? 

Thank you..

--
Ali Rıza


--~--~---------~--~----~------------~-------~--~----~
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