# Path: apps/feeds/models.py
# class Feed(models.Model):
#     feed_url = models.URLField()
#     list_id = models.IntegerField(blank=True, null=True)
#     created_by = models.ForeignKey(settings.AUTH_USER_MODEL)
# 
#     date_created = models.DateTimeField(auto_now_add=True)
#     date_modified = models.DateTimeField(auto_now=True)
# 
#     class Meta:
#         unique_together = ('feed_url', 'created_by')
# 
#     def __unicode__(self):
#         return self.feed_url


from django import forms
from django.conf import settings
from djpubsubhubbub.models import Subscription
from .models import Feed
import feedparser




class FeedCreateForm(forms.ModelForm):
    list_id = forms.ChoiceField(label='List (optional)', required=False)

    class Meta:

# Path: apps/feeds/models.py
# class Feed(models.Model):
#     feed_url = models.URLField()
#     list_id = models.IntegerField(blank=True, null=True)
#     created_by = models.ForeignKey(settings.AUTH_USER_MODEL)
# 
#     date_created = models.DateTimeField(auto_now_add=True)
#     date_modified = models.DateTimeField(auto_now=True)
# 
#     class Meta:
#         unique_together = ('feed_url', 'created_by')
# 
#     def __unicode__(self):
#         return self.feed_url


# Path: apps/feeds/forms.py
from django import forms
from django.conf import settings
from djpubsubhubbub.models import Subscription
from .models import Feed
import feedparser





class FeedCreateForm(forms.ModelForm):
    list_id = forms.ChoiceField(label='List (optional)', required=False)

    class Meta:

        model = Feed