Saturday, January 25, 2014

Using model instance in admin form with script



class RssFeedPageForm(forms.ModelForm):
    class Meta:
        model = RssFeedPage

    def clean_link(self):
        self.instance.save()
        page_model_instance=self.instance, rss_item=RssFeedItem, feed_url=self.data['link'])
   UpdateFeeds().parse_feed(page_model_instance=self.instance, rss_item=RssFeedItem, feed_url=self.data['link'])



--
<surgemcgee>



--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAL-VaPenUpm5Fvu0JmUyCEgHtUgD9VTSSMD8M_c4TpedH9r5wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment