Can you look at these, can they work?

i tried that one but not worked, is there way to make it working? (nope, there 
was no error messages, only strings are not shown at admin panel)

LANGUAGE_OPTIONS = (('en_GB', '(British) English'), ('tr', 'Turkish'), ('es', 
'Spanish'))
class ShortDescription(models.Model):
    strings = dict()
    product = models.ForeignKey(Product)
    for language in LANGUAGE_OPTIONS:
        strings[language[0]] = models.CharField(max_length=300)

-----------------------------------------------------------------------------------------
I did not tried to run that:

class Product(models.Model):
    name = models.CharField(max_length=50)
    slug = models.SlugField()
    preview_animation = models.ImageField(upload_to = "animations")

class Game(Product)
    another_properties = CharField..
    ...
    ...

                
----
Mirat Can Bayrak <miratcanbay...@gmail.com>

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