Friday, February 1, 2013

Admin Site m2m Inline get_or_create

Dear Djangonauts,
I'm in a bit of a pickle here and I would appreciate your help. I have a model which needs multiple dates. I thought on serializing them onto a TextField but it isn't pretty and a query-hell so instead settled for a m2m field. 

Now, on the django admin site I want to be able to let them write or pick with the datepicker (a DateWidget) the date and get_or_create it. I figured that I will need to use an InlineModelAdmin but now I'm stuck because it's not like replacing the select widget (from the "through" table).

Has anybody did something like this before? I appreciate some guidance.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment