views:

18

answers:

1
 class MyModel(models.Model): 
    timezone = models.CharField() 

In the above,should timezone be stored in a char field for the below values,

   from pytz import all_timezones

   for t in all_timezones:
       print t

    Africa/Abidjan
    Africa/Accra
    ----
    ----   
A: 

Unless the name actually matters, I'd just store it as an offset in minutes or seconds from UTC.

Ignacio Vazquez-Abrams