I am trying create a custom model field that will create 2 field
instances, a CharField and a booleanField. I am using this with
signals and dispatchers to insert data entered from this custom field
into another model/table that contains a boolean and char field. my
question is: how can I return 2 field objects in a single model
subclass class. Seems like it would be similar to what occurs in
datetimeField but not sure how to implement. so end result would look
something like this:
some_model(models.Model):
fields = customFields()
so that I don't have to do something like this in the model that I
will be calling this from
some_model(models.Model):
field_1 = customField1()
field_2 = customField2()
Any pointers on how to do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---