hola, soy algo nuevo en Python-Django y me he encontrado con un
pequeño problema.

-> tengo 2 clases <-
--------------------
class PayForm(models.Model):
    type = models.CharField(max_length=1, choices=PAYFORMS_TYPES)
    weekendDays = models.BooleanField()
    holydays = models.BooleanField()
    dateTime = models.DateTimeField(default=datetime.datetime.now(),
editable=False)

class DateMother(DateBase):
    day = models.CharField(max_length=2, choices=HOLYDAYS_DAYS)
    month = models.CharField(max_length=2, choices=HOLYDAYS_MONTHS)
    payform = models.ForeignKey(PayForm, editable=False)

-> Inline <-
------------
class PayFormInLine(admin.TabularInline):
    model   = DateMother

-> ModelAdmin <-
----------------
class PayFormAdmin(admin.ModelAdmin):
    inlines = [
        PayFormInLine,
    ]

por ejemplo si el formulario fuera el siguiente

Type: type1
WeekendDays: yes
Holydays: yes

Day      Month
 15,      05
 30,      04
 15,      06

como me hago para comparar los valores de Month(moth[0], month[1]...)

Gracias.


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