Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the coolness:
- limited_choices = {'app_label':'regions', 'model__in':('regionpoint', 'regionshape')}
- content_type = models.ForeignKey(generic_models.ContentType, limit_choices_to=limited_choices)
- #where limited choices is like the **kwargs for a filter command
Add Comment
Please, Sign In to add comment