prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add challenge filtering using featured parameter.
  We need to add filtering in challenge model on the basis of `featured` parameter.
  Add challenge filtering using featured parameter.
  We need to add filtering in challenge model on the basis of `featured` parameter.
  
  </issue>
  <code>
  [start of apps/challenges/admin.py]
  1 from django.contrib import admin
  2 
  3 from base.admin import ImportExportTimeStampedAdmin
  4 
  5 from .models import (Challenge,
  6                      ChallengeConfiguration,
  7                      ChallengePhase,
  8                      ChallengePhaseSplit,
  9                      DatasetSplit,
  10                      Leaderboard,
  11                      LeaderboardData,
  12                      StarChallenge,)
  13 
  14 
  15 @admin.register(Challenge)
  16 class ChallengeAdmin(ImportExportTimeStampedAdmin):
  17     list_display = ("title", "start_date", "end_date", "creator", "published", "enable_forum", "anonymous_leaderboard")
  18     list_filter = ("creator", "published", "enable_forum", "anonymous_leaderboard")
  19     search_fields = ("title", "creator")
  20 
  21 
  22 @admin.register(DatasetSplit)
  23 class DatasetSplitAdmin(ImportExportTimeStampedAdmin):
  24     list_display = ("name", "codename")
  25     list_filter = ("name", "codename")
  26     search_fields = ("name", "codename")
  27 
  28 
  29 @admin.register(ChallengePhase)
  30 class ChallengePhaseAdmin(ImportExportTimeStampedAdmin):
  31     list_display = ("name", "challenge", "start_date", "end_date", "test_annotation", "is_public", "leaderboard_public")
  32     list_filter = ("leaderboard_public", "challenge")
  33     search_fields = ("name",)
  34 
  35 
  36 @admin.register(Leaderboard)
  37 class LeaderboardAdmin(ImportExportTimeStampedAdmin):
  38     list_display = ("id", "schema")
  39     search_fields = ("id",)
  40 
  41 
  42 @admin.register(ChallengePhaseSplit)
  43 class ChallengePhaseSplitAdmin(ImportExportTimeStampedAdmin):
  44     list_display = ("id", "challenge_phase", "dataset_split", "leaderboard", "visibility")
  45     list_filter = ("challenge_phase", "dataset_split", "leaderboard", "visibility")
  46     search_fields = ("challenge_phase", "dataset_split", "leaderboard")
  47 
  48 
  49 @admin.register(LeaderboardData)
  50 class LeaderboardDataAdmin(ImportExportTimeStampedAdmin):
  51     list_display = ("challenge_phase_split", "submission", "leaderboard", "result")
  52     list_filter = ("challenge_phase_split", "leaderboard",)
  53     search_fields = ("challenge_phase_split", "submission", "leaderboard", "result")
  54 
  55 
  56 @admin.register(ChallengeConfiguration)
  57 class ChallengeConfigurationAdmin(ImportExportTimeStampedAdmin):
  58     list_display = ('user', 'challenge', 'is_created', 'zip_configuration',)
  59     list_filter = ('user', 'is_created',)
  60     search_fields = ('user', 'challenge',)
  61 
  62 
  63 @admin.register(StarChallenge)
  64 class StarChallengeAdmin(ImportExportTimeStampedAdmin):
  65     list_display = ('user', 'challenge', 'is_starred')
  66     search_fields = ('user', 'challenge',)
  67
  [end of apps/challenges/admin.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/apps/challenges/admin.py b/apps/challenges/admin.py
  --- a/apps/challenges/admin.py
  +++ b/apps/challenges/admin.py
  @@ -14,8 +14,9 @@
   
   @admin.register(Challenge)
   class ChallengeAdmin(ImportExportTimeStampedAdmin):
  -    list_display = ("title", "start_date", "end_date", "creator", "published", "enable_forum", "anonymous_leaderboard")
  -    list_filter = ("creator", "published", "enable_forum", "anonymous_leaderboard")
  +    list_display = ("title", "start_date", "end_date", "creator", "published", "enable_forum", "anonymous_leaderboard",
  +                    "featured")
  +    list_filter = ("creator", "published", "enable_forum", "anonymous_leaderboard", "featured")
       search_fields = ("title", "creator")
  
verification_info: {"golden_diff": "diff --git a/apps/challenges/admin.py b/apps/challenges/admin.py\n--- a/apps/challenges/admin.py\n+++ b/apps/challenges/admin.py\n@@ -14,8 +14,9 @@\n \n @admin.register(Challenge)\n class ChallengeAdmin(ImportExportTimeStampedAdmin):\n-    list_display = (\"title\", \"start_date\", \"end_date\", \"creator\", \"published\", \"enable_forum\", \"anonymous_leaderboard\")\n-    list_filter = (\"creator\", \"published\", \"enable_forum\", \"anonymous_leaderboard\")\n+    list_display = (\"title\", \"start_date\", \"end_date\", \"creator\", \"published\", \"enable_forum\", \"anonymous_leaderboard\",\n+                    \"featured\")\n+    list_filter = (\"creator\", \"published\", \"enable_forum\", \"anonymous_leaderboard\", \"featured\")\n     search_fields = (\"title\", \"creator\")\n", "issue": "Add challenge filtering using featured parameter.\nWe need to add filtering in challenge model on the basis of `featured` parameter.\nAdd challenge filtering using featured parameter.\nWe need to add filtering in challenge model on the basis of `featured` parameter.\n", "before_files": [{"content": "from django.contrib import admin\n\nfrom base.admin import ImportExportTimeStampedAdmin\n\nfrom .models import (Challenge,\n                     ChallengeConfiguration,\n                     ChallengePhase,\n                     ChallengePhaseSplit,\n                     DatasetSplit,\n                     Leaderboard,\n                     LeaderboardData,\n                     StarChallenge,)\n\n\n@admin.register(Challenge)\nclass ChallengeAdmin(ImportExportTimeStampedAdmin):\n    list_display = (\"title\", \"start_date\", \"end_date\", \"creator\", \"published\", \"enable_forum\", \"anonymous_leaderboard\")\n    list_filter = (\"creator\", \"published\", \"enable_forum\", \"anonymous_leaderboard\")\n    search_fields = (\"title\", \"creator\")\n\n\n@admin.register(DatasetSplit)\nclass DatasetSplitAdmin(ImportExportTimeStampedAdmin):\n    list_display = (\"name\", \"codename\")\n    list_filter = (\"name\", \"codename\")\n    search_fields = (\"name\", \"codename\")\n\n\n@admin.register(ChallengePhase)\nclass ChallengePhaseAdmin(ImportExportTimeStampedAdmin):\n    list_display = (\"name\", \"challenge\", \"start_date\", \"end_date\", \"test_annotation\", \"is_public\", \"leaderboard_public\")\n    list_filter = (\"leaderboard_public\", \"challenge\")\n    search_fields = (\"name\",)\n\n\n@admin.register(Leaderboard)\nclass LeaderboardAdmin(ImportExportTimeStampedAdmin):\n    list_display = (\"id\", \"schema\")\n    search_fields = (\"id\",)\n\n\n@admin.register(ChallengePhaseSplit)\nclass ChallengePhaseSplitAdmin(ImportExportTimeStampedAdmin):\n    list_display = (\"id\", \"challenge_phase\", \"dataset_split\", \"leaderboard\", \"visibility\")\n    list_filter = (\"challenge_phase\", \"dataset_split\", \"leaderboard\", \"visibility\")\n    search_fields = (\"challenge_phase\", \"dataset_split\", \"leaderboard\")\n\n\n@admin.register(LeaderboardData)\nclass LeaderboardDataAdmin(ImportExportTimeStampedAdmin):\n    list_display = (\"challenge_phase_split\", \"submission\", \"leaderboard\", \"result\")\n    list_filter = (\"challenge_phase_split\", \"leaderboard\",)\n    search_fields = (\"challenge_phase_split\", \"submission\", \"leaderboard\", \"result\")\n\n\n@admin.register(ChallengeConfiguration)\nclass ChallengeConfigurationAdmin(ImportExportTimeStampedAdmin):\n    list_display = ('user', 'challenge', 'is_created', 'zip_configuration',)\n    list_filter = ('user', 'is_created',)\n    search_fields = ('user', 'challenge',)\n\n\n@admin.register(StarChallenge)\nclass StarChallengeAdmin(ImportExportTimeStampedAdmin):\n    list_display = ('user', 'challenge', 'is_starred')\n    search_fields = ('user', 'challenge',)\n", "path": "apps/challenges/admin.py"}]}