#24308: ValueError: Cannot serialize: <bound method SiteManager.get_current of
<django.contrib.sites.models.SiteManager object at 0xb647c9ac>>
-------------------------------------+-------------------------------------
     Reporter:  jedie                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Migrations           |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  MigrationWriter,     |             Triage Stage:
  Site                               |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by jedie):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Ah, seems that this is the trigger for this:

 {{{
     site = models.ForeignKey(Site,
         default=Site.objects.get_current
     )
 }}}

 I change this to:
 {{{
     site = models.ForeignKey(Site,
         default=settings.SITE_ID,
     )
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24308#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.c6aa0127aa5c6b2b99688c0d17f04797%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to