arneb / django-campaign

Newsletter management app for Django
BSD 3-Clause "New" or "Revised" License
66 stars 19 forks source link

How i can use the subscriber list in admin? #3

Closed fr33co closed 9 years ago

fr33co commented 9 years ago

I don't understand the format or the method to create subscriber list. How is the format of the json field? Sorry for my english.

ghost commented 9 years ago

Hello,

You can simply select for example

Content type: user Filter condition {"is_active": true}

Hope that helps.

Best regards, Stephan

On 2015-02-11 03:47, Angel A. Guadarrama B. wrote:

I don't understand the format or the method to create subscriber list. How is the format of the json field? Sorry for my english.

— Reply to this email directly or view it on GitHub https://github.com/arneb/django-campaign/issues/3.

arneb commented 9 years ago

Hi fr33co,

the documentation is not covering this topic very good :-(

The Json-Field expects a json encoded dict of kwargs, which get passed to the QuerySet. emetor already gave a good example! So ContentType "user" and filter {"is_active": true} will map to: User.objects.filter(is_active=True)

Best regards, Arne

fr33co commented 9 years ago

Ok, thanks. I'll check that.

Note: I made some changes in the code to work on Django 1.7