Did I find the right examples for you? yes no

All Samples(30)  |  Call(30)  |  Derive(0)  |  Import(0)

src/d/e/denigma-HEAD/denigma/apps/experts/views.py   denigma(Download)
def detail(request, expertname, template='experts/detail.html'):
    """Shows the detail view of an expert."""
    try:
        expert = Profile.objects.get(user_name=expertname.replace('_', ' '))
    except Profile.DoesNotExist:
        expert = Profile.objects.get(pk=expertname)

src/d/e/denigma-HEAD/denigma/apps/expressions/views.py   denigma(Download)
def profile(request, pk):
    profile = Profile.objects.get(pk=pk)
    replicates = Replicate.objects.filter(profile=profile) #profile.replicates.all()
    table = ReplicateTable(replicates)
    RequestConfig(request).configure(table)

src/n/o/nodeshot-HEAD/nodeshot/community/profiles/views.py   nodeshot(Download)
        def get_queryset(self):
            try:
                self.user = Profile.objects.get(username=self.kwargs['username'])
            except Profile.DoesNotExist:
                raise Http404(_('User not found'))

src/n/o/nodeshot-HEAD/nodeshot/community/profiles/admin.py   nodeshot(Download)
    def clean_username(self):
        username = self.cleaned_data["username"]
        try:
            Profile.objects.get(username=username)
        except Profile.DoesNotExist:

src/p/o/popcorn_maker-HEAD/popcorn_gallery/users/views.py   popcorn_maker(Download)
def profile(request, username):
    """Display profile page for user specified by ``username``."""
    try:
        profile = Profile.objects.get(user__username=username)
    except Profile.DoesNotExist:

src/a/r/arkestrator-HEAD/mdc3/profiles/views.py   arkestrator(Download)
def edit_info(request):
    """ lets the user edit their publicly available info """
    prof = Profile.objects.get(user=request.user)
    if request.method == 'POST':
        profile_form = forms.InfoProfileForm(request.POST,
def edit_prefs(request):
    """ lets the user edit their preferences and private email """
    prof = Profile.objects.get(user=request.user)
    if request.method == 'POST':
        prefs_form = forms.PrefsForm(request.POST,

src/q/u/qualitio-HEAD/qualitio/payments/views.py   qualitio(Download)
def paypal_ipn(request, *args, **kwargs):
    organization_name, strategy_name = request.POST.get('product_name').split(":")
 
    profile = Profile.objects.get(organization__name=organization_name)
 

src/y/a/yaem-HEAD/yaem/apps/yaem/views.py   yaem(Download)
        return HttpResponseRedirect("/accounts/register/make-profile/")
#------------------------------------------------------------------------------------------------
    p = Profile.objects.get(owner=request.user)
    return render(request, "accounts/profile.html", {
        'profile': p,

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/tests/modeltests/update_only_fields/tests.py   appscale(Download)
        with self.assertNumQueries(1):
            e1.profile.save()
        reloaded_profile = Profile.objects.get(pk=profile_boss.pk)
        self.assertEqual(reloaded_profile.name, profile_boss.name)
        self.assertEqual(reloaded_profile.salary, 3000)

src/d/j/django-pyodbc-HEAD/tests/django16/update_only_fields/tests.py   django-pyodbc(Download)
        with self.assertNumQueries(1):
            e1.profile.save()
        reloaded_profile = Profile.objects.get(pk=profile_boss.pk)
        self.assertEqual(reloaded_profile.name, profile_boss.name)
        self.assertEqual(reloaded_profile.salary, 3000)

  1 | 2  Next