Hi, I would like to create a custom abstract field for a model. This field shouldn't affect the database, it should only be used for passing variables. I need to get "request.user" when "post_init" signal is fired. So I was thinking about something like this:
Creating a model in view > n = Poll(viewer=request.user,pk=poll_id) (Viewer field should also be a required field.) and then when post_init fires, you basically check: > if instance.viewer is not in allowed_users: raise Forbidden() Any tips on how to create this kind of field or maybe any other solutions? Thanks, Sebastjan --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---